> SET(CMAKE_SUPPRESS_REGENERATION TRUE)
> will do the same thing but without having to modifiy the source of cmake.
> will do the same thing but without having to modifiy the source of cmake.
I tried it and it works great.
It is just needed to add the source file manually
if CMAKE_SUPPRESS_REGENERATION is set.
IF(CMAKE_SUPPRESS_REGENERATION)
LIST(APPEND TARGET_FILES
"CMakeLists.txt")
ENDIF(CMAKE_SUPPRESS_REGENERATION)
Thank you for the hint, now we can easily set it on
or off outside of the code.
Sylvain
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake