cmake: Delete check_cxx_source_links_with_flags macro
This commit is contained in:
2 files changed
+1
-9
No files matched your search
@@ -14,14 +14,6 @@ macro(check_cxx_source_compiles_with_flags flags source)
|
||||
cmake_pop_check_state()
|
||||
endmacro()
|
||||
|
||||
macro(check_cxx_source_links_with_flags flags source)
|
||||
cmake_push_check_state(RESET)
|
||||
set(CMAKE_REQUIRED_FLAGS ${flags})
|
||||
list(JOIN CMAKE_REQUIRED_FLAGS " " CMAKE_REQUIRED_FLAGS)
|
||||
check_cxx_source_compiles("${source}" ${ARGN})
|
||||
cmake_pop_check_state()
|
||||
endmacro()
|
||||
|
||||
macro(check_cxx_source_links_with_libs libs source)
|
||||
cmake_push_check_state(RESET)
|
||||
set(CMAKE_REQUIRED_LIBRARIES "${libs}")
|
||||
|
||||
Reference in new issue
Block a user