summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-06-14 03:40:16 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-06-14 03:44:47 +0200
commitce741f6553e32ad7a01b85d5736d8da7bac0d392 (patch)
tree29d163b2e2cb950ca48c9607da584ed90f4d4e69
parent91b7be12b453c1f0a6f3d5ff70778dedba0a690d (diff)
downloadtdelibs-ce741f6553e32ad7a01b85d5736d8da7bac0d392.tar.gz
tdelibs-ce741f6553e32ad7a01b85d5736d8da7bac0d392.zip
Fix setting some constants in config.h with CMake build
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit f17c618004e799eb1ae9dc35907a7b9431968ba2)
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d89547ac9..19a843812 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 )