aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lemon
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-10-21 14:21:09 -0700
committerGuy Harris <guy@alum.mit.edu>2018-10-21 21:21:41 +0000
commit1d39055ec94eb94e38ee75d699c14f07d15f8f32 (patch)
tree624604ab928fa5b2f67539f3afc02ccfc80c18c5 /tools/lemon
parent4d56eec0ccb0b3c8827c31776c70e6d6827de1bc (diff)
Test C compiler flags with check_c_compiler_flag(), not check_c_linker_flag().
Change-Id: If56a6acf9935838232d6ee86e331361fb076369b Reviewed-on: https://code.wireshark.org/review/30316 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tools/lemon')
-rw-r--r--tools/lemon/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lemon/CMakeLists.txt b/tools/lemon/CMakeLists.txt
index f730ba058a..af62d4596e 100644
--- a/tools/lemon/CMakeLists.txt
+++ b/tools/lemon/CMakeLists.txt
@@ -51,7 +51,7 @@ else()
endif()
foreach(THIS_FLAG IN LISTS lemon_cflags_test)
string(MAKE_C_IDENTIFIER "C${THIS_FLAG}_VALID" _flag_var)
- check_c_linker_flag(${THIS_FLAG} ${_flag_var})
+ check_c_compiler_flag(${THIS_FLAG} ${_flag_var})
if(${_flag_var})
# Look for -Wfoo flags above in case it is cached, but
# actually disable the warning here with -Wno-foo.