Commit 80b388dd authored by Thomas Feuvrier's avatar Thomas Feuvrier

ENH: Replace FUNCTION() by MACRO() to define OTB_ADD_EXECUTABLE command....

ENH: Replace FUNCTION() by MACRO() to define OTB_ADD_EXECUTABLE command. FUNCTION is define for cmake version > 2.6.
parent acb0b1f0
......@@ -768,7 +768,7 @@ IF(OTB_CPP_CHECK_SOURCE_FILE)
FIND_PROGRAM(OTB_CPP_CHECK_PROG "")
ENDIF(OTB_CPP_CHECK_SOURCE_FILE)
FUNCTION(OTB_ADD_EXECUTABLE name sources libraries)
MACRO(OTB_ADD_EXECUTABLE name sources libraries)
# MESSAGE(STATUS "name: ${name}")
# MESSAGE(STATUS "sources: ${sources}")
# MESSAGE(STATUS "libraries: ${libraries}")
......@@ -787,7 +787,7 @@ FUNCTION(OTB_ADD_EXECUTABLE name sources libraries)
VERBATIM )
ENDFOREACH(file)
ENDIF(OTB_CPP_CHECK_SOURCE_FILE)
ENDFUNCTION(OTB_ADD_EXECUTABLE)
ENDMACRO(OTB_ADD_EXECUTABLE)
#-----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment