link_flag: use CURRENT_BINARY dir
This commit is contained in:
parent
61719f3dbc
commit
e9eedc72c2
@ -5,8 +5,8 @@ macro(check_link_flag variable flag)
|
|||||||
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${flag}")
|
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${flag}")
|
||||||
|
|
||||||
try_compile (test_check_linker_flag
|
try_compile (test_check_linker_flag
|
||||||
"${CMAKE_BINARY_DIR}/CMakeTmp"
|
"${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp"
|
||||||
SOURCES "${CMAKE_SOURCE_DIR}/cmake/test_link_flag.cpp")
|
SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/cmake/test_link_flag.cpp")
|
||||||
if (test_check_linker_flag)
|
if (test_check_linker_flag)
|
||||||
message (STATUS "checking linker flag ${flag} - found")
|
message (STATUS "checking linker flag ${flag} - found")
|
||||||
set (${variable} 1)
|
set (${variable} 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user