# 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
# version don't set this - it should be caught by presubmits anyway.
- if (WIN32)
- add_link_options("-Wl,--no-undefined")
- else()
+ if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
add_link_options("-Wl,-undefined,error")
+ else()
+ add_link_options("-Wl,--no-undefined")
endif()
endif()
elseif(MSVC)
DESTINATION
"${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
)
-endif()
\ No newline at end of file
+endif()