build: Don't override CMake's default try_compile target
CMake assumes the default value internally, so overriding this causes problems. The minimal speedup of skipping the linker isn't worth the complexity of setting it to static.
This commit is contained in:
2 files changed
+4
-13
No files matched your search
@@ -26,7 +26,7 @@ function(test_append_socket_library target)
|
||||
")
|
||||
|
||||
include(CheckSourceCompilesAndLinks)
|
||||
check_cxx_source_links("${check_socket_source}" IFADDR_LINKS_WITHOUT_LIBSOCKET)
|
||||
check_cxx_source_compiles("${check_socket_source}" IFADDR_LINKS_WITHOUT_LIBSOCKET)
|
||||
if(NOT IFADDR_LINKS_WITHOUT_LIBSOCKET)
|
||||
check_cxx_source_links_with_libs(socket "${check_socket_source}" IFADDR_NEEDS_LINK_TO_LIBSOCKET)
|
||||
if(IFADDR_NEEDS_LINK_TO_LIBSOCKET)
|
||||
@@ -78,7 +78,7 @@ function(test_append_atomic_library target)
|
||||
")
|
||||
|
||||
include(CheckSourceCompilesAndLinks)
|
||||
check_cxx_source_links("${check_atomic_source}" STD_ATOMIC_LINKS_WITHOUT_LIBATOMIC)
|
||||
check_cxx_source_compiles("${check_atomic_source}" STD_ATOMIC_LINKS_WITHOUT_LIBATOMIC)
|
||||
if(STD_ATOMIC_LINKS_WITHOUT_LIBATOMIC)
|
||||
return()
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user