From c76dc2c8cea78285460fea7f98b9c64904242f9a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 11 Jul 2014 12:31:27 +0200 Subject: fix symbol visibility issue --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b2e9f99..21a865f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,8 @@ if(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE) endif() endif() +add_definitions(-DOPENTRACK_MAIN) + if(APPLE) set(apple-frameworks "-stdlib=libc++ -framework Cocoa -framework CoreFoundation -lobjc -lz -framework Carbon") set(CMAKE_SHARED_LINKER_FLAGS " ${apple-frameworks} ${CMAKE_SHARED_LINKER_FLAGS}") @@ -549,7 +551,6 @@ if(SDK_GOOGLE_BREAKPAD) "${SDK_GOOGLE_BREAKPAD}/src/client/windows/Release/lib/common.lib") endif() endif() -set_target_properties(opentrack PROPERTIES COMPILE_FLAGS -DOPENTRACK_MAIN) # make install -- cgit v1.2.3