summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-23 18:11:14 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-23 18:11:14 -0500
commit32084a0e3983ceb707675e5268a5e9a3c9b7e778 (patch)
tree1ca41079ae6e6f0a2f762aeca97801ad163566a6 /CMakeLists.txt
parentaf207094203cd1c2f23a1972e11fe60cc692548d (diff)
downloadtdevelop-32084a0e3983ceb707675e5268a5e9a3c9b7e778.tar.gz
tdevelop-32084a0e3983ceb707675e5268a5e9a3c9b7e778.zip
Fix make command when compiled with CMake
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 #################