Skip to content

Commit

Permalink
Fix build for clang + mingw32-make
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-lunarg committed May 25, 2022
1 parent 86ff4bc commit 25e97a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
# 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.
add_link_options("-Wl,-undefined,error")
if (WIN32)
add_link_options("-Wl,--no-undefined")
else()
add_link_options("-Wl,-undefined,error")
endif()
endif()
elseif(MSVC)
if(NOT ENABLE_RTTI)
Expand Down

0 comments on commit 25e97a5

Please sign in to comment.