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" <[email protected]>
À: "cmake" <[email protected]>
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
--

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

Reply via email to