[brlcad-commits] SF.net SVN: brlcad:[51511] brlcad/trunk/misc/CMake/PERPLEX_Util.cmake
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <sta...@us...> - 2012-07-14 22:46:32
|
Revision: 51511 http://brlcad.svn.sourceforge.net/brlcad/?rev=51511&view=rev Author: starseeker Date: 2012-07-14 22:46:26 +0000 (Sat, 14 Jul 2012) Log Message: ----------- sync PERPLEX_Util.cmake Modified Paths: -------------- brlcad/trunk/misc/CMake/PERPLEX_Util.cmake Modified: brlcad/trunk/misc/CMake/PERPLEX_Util.cmake =================================================================== --- brlcad/trunk/misc/CMake/PERPLEX_Util.cmake 2012-07-14 22:45:56 UTC (rev 51510) +++ brlcad/trunk/misc/CMake/PERPLEX_Util.cmake 2012-07-14 22:46:26 UTC (rev 51511) @@ -84,13 +84,23 @@ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMENT "[PERPLEX][${Name}] Generating re2c input with ${PERPLEX_EXECUTABLE}" ) - add_custom_command( - OUTPUT ${OutputSrc} - COMMAND ${RE2C_EXECUTABLE} --no-generation-date -c -o ${OutputSrc} ${re2c_src} - DEPENDS ${Input} ${re2c_src} ${OutputHeader} ${PERPLEX_EXECUTABLE_TARGET} ${RE2C_EXECUTABLE_TARGET} - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - COMMENT "[RE2C][${Name}] Building scanner with ${RE2C_EXECUTABLE}" - ) + if(NOT DEBUGGING_GENERATED_SOURCES) + add_custom_command( + OUTPUT ${OutputSrc} + COMMAND ${RE2C_EXECUTABLE} --no-debug-info --no-generation-date -c -o ${OutputSrc} ${re2c_src} + DEPENDS ${Input} ${re2c_src} ${OutputHeader} ${PERPLEX_EXECUTABLE_TARGET} ${RE2C_EXECUTABLE_TARGET} + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + COMMENT "[RE2C][${Name}] Building scanner with ${RE2C_EXECUTABLE}" + ) + else(NOT DEBUGGING_GENERATED_SOURCES) + add_custom_command( + OUTPUT ${OutputSrc} + COMMAND ${RE2C_EXECUTABLE} --no-generation-date -c -o ${OutputSrc} ${re2c_src} + DEPENDS ${Input} ${re2c_src} ${OutputHeader} ${PERPLEX_EXECUTABLE_TARGET} ${RE2C_EXECUTABLE_TARGET} + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + COMMENT "[RE2C][${Name}] Building scanner with ${RE2C_EXECUTABLE}" + ) + endif(NOT DEBUGGING_GENERATED_SOURCES) set(PERPLEX_${Name}_DEFINED TRUE) set(PERPLEX_${Name}_OUTPUTS ${OutputSrc}) set(PERPLEX_${Name}_INPUT ${Input}) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |