diff options
author | Slávek Banko <[email protected]> | 2015-01-01 03:42:12 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2015-01-01 03:42:29 +0100 |
commit | 4c2accb349bc5b0abcb7af97e8e813898bf4d5d9 (patch) | |
tree | eccf6469ce1018eab81b371a2efe77bfa56683fb /CMakeLists.txt | |
parent | 60b59babcc4c3de4a3db62002c83db70d6f45b8d (diff) | |
download | libr-4c2accb349bc5b0abcb7af97e8e813898bf4d5d9.tar.gz libr-4c2accb349bc5b0abcb7af97e8e813898bf4d5d9.zip |
Fix linked libraries with CMake
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 89b2d99..ec3eb11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,6 +83,12 @@ if( NOT LIBGLADE_FOUND ) tde_message_fatal( "libglade-2.0 are required, but not found on your system" ) endif( NOT LIBGLADE_FOUND ) + +set( EXTRA_LIBRARIES "-lm -lpthread" ) +if( UNIX ) + set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden" ) +endif( UNIX ) + message( STATUS "Ready to build with backend ${BACKEND_NAME}" ) |