parent
86ff4bca1d
commit
25e97a5b06
@ -191,7 +191,11 @@ elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang" AND NOT MSVC)
|
|||||||
# Error if there's symbols that are not found at link time.
|
# Error if there's symbols that are not found at link time.
|
||||||
# add_link_options() was added in CMake 3.13 - if using an earlier
|
# add_link_options() was added in CMake 3.13 - if using an earlier
|
||||||
# version don't set this - it should be caught by presubmits anyway.
|
# version don't set this - it should be caught by presubmits anyway.
|
||||||
add_link_options("-Wl,-undefined,error")
|
if (WIN32)
|
||||||
|
add_link_options("-Wl,--no-undefined")
|
||||||
|
else()
|
||||||
|
add_link_options("-Wl,-undefined,error")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
elseif(MSVC)
|
elseif(MSVC)
|
||||||
if(NOT ENABLE_RTTI)
|
if(NOT ENABLE_RTTI)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user