parent
ed257e2bdf
commit
586baa35a4
1 changed files with 4 additions and 4 deletions
|
|
@ -192,10 +192,10 @@ 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.
|
||||||
if (WIN32)
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
|
||||||
add_link_options("-Wl,--no-undefined")
|
|
||||||
else()
|
|
||||||
add_link_options("-Wl,-undefined,error")
|
add_link_options("-Wl,-undefined,error")
|
||||||
|
else()
|
||||||
|
add_link_options("-Wl,--no-undefined")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
elseif(MSVC)
|
elseif(MSVC)
|
||||||
|
|
@ -402,4 +402,4 @@ if(ENABLE_GLSLANG_INSTALL)
|
||||||
DESTINATION
|
DESTINATION
|
||||||
"${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
|
"${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue