I added these lines:
set_directory_properties(
PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
"${CMAKE_CURRENT_BINARY_DIR}/abc.txt"
)
# check the location where abc.txt is supposed to be deleted from
message("CURRENT_BINARY_DIR: ${CMAKE_CURRENT_BINARY_DIR}")
to the end of my CMakeLists.txt and then created abc.txt in the cmake build
directory. I can confirm that the abc.txt file was not deleted by a clean
solution. I tried this with Visual Studio 2012 and Visual Studio 2008
(both installs are the Express editions) and the results were identical.
--
Glenn
On 28 April 2013 11:53, Alexander Neundorf <[email protected]> wrote:
> On Sunday 28 April 2013, Glenn Coombs wrote:
> > No, cleaning the project didn't remove that file.
>
> Can you manually set the ADDITIONAL_MAKE_CLEAN_FILES directory property to
> some file and check whether this file is deleted when you clean ?
>
> Something like
>
> set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
> "${CMAKE_CURRENT_BINARY_DIR}/abc.txt" )
>
>
> then just create such a file in the build dir, and clean.
> It should be removed then.
> If it is not, then this is the reason why clean doesn't clean automoc
> properly.
>
> Alex
>
--
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