diff --git a/CMakeLists.txt b/CMakeLists.txt index 3849ef462..c45f22f1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -217,6 +217,8 @@ if(APPLE) set(CMAKE_MACOSX_RPATH 1) elseif(UNIX) add_definitions(-D_LINUX) + # Check for unresolved symbols at link time + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-z,defs") elseif(WIN32) add_definitions(-DWIN32) endif()