Skip to content

Commit

Permalink
CMake: fixed a failure to reset CMAKE_REQUIRED_FLAGS (thanks, Martin!).
Browse files Browse the repository at this point in the history
This would break Emscripten builds with the CMake project files (etc).

Fixes Bugzilla #3197.
  • Loading branch information
icculus committed Dec 29, 2015
1 parent c9927bb commit 7e679ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -382,7 +382,7 @@ if(USE_GCC OR USE_CLANG)

set(CMAKE_REQUIRED_FLAGS "-Wl,--no-undefined")
check_c_compiler_flag("" HAVE_NO_UNDEFINED)
set(CMAKE_REQUIRED_FLAGS)
set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})
if(HAVE_NO_UNDEFINED)
list(APPEND EXTRA_LDFLAGS "-Wl,--no-undefined")
endif()
Expand Down

0 comments on commit 7e679ed

Please sign in to comment.