Fix make command when compiled with CMake

pull/1/head
Timothy Pearson 12 years ago
parent af20709420
commit 32084a0e39

@ -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 #################

Loading…
Cancel
Save