[CMake] Get a rule name

ycollette.nospam at free.fr ycollette.nospam at free.fr
Thu Jun 20 05:26:44 EDT 2013


I found the solution. In the directory I want to be excluded from the make clean, I added in the corresponding CMakeLists.txt file:

# Prevent the "make clean" from cleaning this directory
set_directory_properties(PROPERTIES CLEAN_NO_CUSTOM TRUE)

Best regards,

YC

----- Mail original -----
De: "ycollette nospam" <ycollette.nospam at free.fr>
À: "cmake" <cmake at cmake.org>
Envoyé: Jeudi 20 Juin 2013 10:17:20
Objet: [CMake] Get a rule name

Hello 

I would like to know if it's possible to get a rule like.
For example, if I do a "make clean", I would like to get "clean" in a cmake variable.

Best regards,

YC
--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list