link_flag: use consistent macro variable names

This commit is contained in:
Danny Robson 2017-01-23 16:48:36 +11:00
parent af25ffdf6c
commit 2d9f884cbc

View File

@ -30,8 +30,8 @@ macro(check_link_flag _variable _flag)
endmacro() endmacro()
macro(append_link_flag flag) macro(append_link_flag _flag)
check_link_flag (__test_link_flag_${flag} ${flag}) check_link_flag (__test_link_flag_${_flag} ${_flag})
if (__test_link_flag_${_flag}) if (__test_link_flag_${_flag})
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${_flag}") set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${_flag}")
endif() endif()