OTB-Applications cannot compile when the sources are located in a directory with spaces in its name
Mantis Issue 510, reported by lhermitte, assigned to cvalladeau, created: 2012-02-02
The on-the-fly (?) definition of the macro WRAP_MACRO_CALL from ApplicationGenerators/CMakeLists.txt needs to protect INCLUDE_DIRS variable. The code shall become:
SET(WRAP_MACRO_CALL
"${WRAP_MACRO}(NAME ${APPLICATION_NAME}
CLASSNAME ${APPLICATION_CLASSNAME}
INCLUDE_FILE ${APPLICATION_INCLUDE_FILE}
INCLUDE_DIRS \\"${APPLICATION_INCLUDE_DIRS}\\"
LINK_LIBRARIES ${APPLICATION_LINK_LIBRARIES})\
")
Instead of:
INCLUDE_DIRS ${APPLICATION_INCLUDE_DIRS}
1328600447 - C ValladeauPatch included here : http://hg.orfeo-toolbox.org/OTB-Applications/rev/be6a0dfac26c.