Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: check_compiler_flag: Fix bug where checks were aliased
Fix a bug where different compiler checks were aliased and therefore the test results were incorrectly re-used. The 'check' string is used by CMake internally to cache test results, but when testing linker flags the check string has been aliased between the different linker checks. To fix the aliasing issue we add the CMAKE_REQUIRED_FLAGS variable to the 'check' string. The aliasing issue disappears because the linker flag-under-test is in 'CMAKE_REQUIRED_FLAGS'. Signed-off-by: Sebastian Bøe <[email protected]>
- Loading branch information