From af7e64a9c2ec95d7a9e6e3f4fb0eceb8aa6a87e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 5 Oct 2011 07:50:57 +0100 Subject: [PATCH] Always build the common library as static. The wrappers rely on that. Fixes build with -DBUILD_SHARED_LIBS:BOOL=ON (issue #44). --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 121a322..7d5db92 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -203,7 +203,7 @@ else (WIN32) set (glws glws_glx.cpp) endif (WIN32) -add_library (common +add_library (common STATIC common/trace_file.cpp common/trace_snappyfile.cpp common/trace_model.cpp @@ -221,7 +221,7 @@ add_library (common set_target_properties (common PROPERTIES # Ensure it can be statically linked in shared libraries - COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS}" + COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS}" ) link_libraries (common) -- 2.43.0