diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-06-14 03:40:16 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-06-14 03:40:16 +0200 |
commit | f17c618004e799eb1ae9dc35907a7b9431968ba2 (patch) | |
tree | 0d208d283f38ea3b1d162b4e4d51f051d12dedce | |
parent | 3be9f300c9a754320a02fd10a729ef797ffb8506 (diff) | |
download | tdelibs-f17c618004e799eb1ae9dc35907a7b9431968ba2.tar.gz tdelibs-f17c618004e799eb1ae9dc35907a7b9431968ba2.zip |
Fix setting some constants in config.h with CMake build
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | CMakeLists.txt | 9 |
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 ) |