The wrappers rely on that.
Fixes build with -DBUILD_SHARED_LIBS:BOOL=ON (issue #44).
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
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)