summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-06-14 01:40:16 (GMT)
committer Slávek Banko <slavek.banko@axis.cz>2015-06-14 01:40:16 (GMT)
commitf17c618004e799eb1ae9dc35907a7b9431968ba2 (patch)
tree0d208d283f38ea3b1d162b4e4d51f051d12dedce
parent3be9f300c9a754320a02fd10a729ef797ffb8506 (diff)
downloadtdelibs-f17c6180.zip
tdelibs-f17c6180.tar.gz
Fix setting some constants in config.h with CMake build
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d89547a..19a8438 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -518,6 +518,15 @@ endif( TDESU_BACKEND-NOTFOUND )
#### set some constants #########################
+if( NOT "${TDEDIR}" )
+ if( DEFINED ENV{TDEDIR} )
+ set( TDEDIR "$ENV{TDEDIR}" )
+ else( )
+ set( TDEDIR "${CMAKE_INSTALL_PREFIX}" )
+ endif( )
+endif( )
+set( KDE_COMPILER_VERSION "${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}" )
+set( KDE_COMPILING_OS "${CMAKE_SYSTEM_NAME}" )
set( LTDL_OBJDIR \".\" )
set( KDELIBSUFF "${LIB_SUFFIX}" )
set( kde_socklen_t socklen_t )