summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt18
1 files changed, 16 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cc102ae4..1bc0c702 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -112,9 +112,23 @@ if( NOT DEFINED KDELIBS_DOXYDIR )
set( KDELIBS_DOXYDIR "${TDE_HTML_DIR}/en/tdelibs-apidocs" )
endif( )
+
+if( NOT DEFINED FULL_MAKE_COMMAND )
+ find_program( FULL_MAKE_COMMAND
+ NAMES gmake )
+ if( NOT FULL_MAKE_COMMAND )
+ find_program( FULL_MAKE_COMMAND
+ NAMES make )
+ if( NOT FULL_MAKE_COMMAND )
+ tde_message_fatal( "Either make or gmake was NOT found." )
+ endif( NOT FULL_MAKE_COMMAND )
+ endif( NOT FULL_MAKE_COMMAND )
+endif( NOT DEFINED FULL_MAKE_COMMAND )
+
+
if( NOT DEFINED MAKE_COMMAND )
- set( MAKE_COMMAND "gmake" )
-endif( )
+ GET_FILENAME_COMPONENT( MAKE_COMMAND "${FULL_MAKE_COMMAND}" NAME )
+endif( NOT DEFINED MAKE_COMMAND )
###### global compiler settings #################