On Fri, Jan 30, 2009 at 3:00 AM, Hugo Heden <hugohe...@gmail.com> wrote:
> Try using quotes:
>
> SET_DIRECTORY_PROPERTIES(PROPERTIES
>       ADDITIONAL_MAKE_CLEAN_FILES "${extra_libopts_clean_files}" )

Thanks!  That solved my problem.

>> And
>> If I specify each file individually, it appears that only the last
>> takes effect (basically subsequent calls overwrite the previous
>> value).  Surely there is a way to specify multiple files right?
>>
>
> In such a case, you could use the APPEND functionality in set_property:
> http://www.cmake.org/cmake/help/ctest2.6docs.html#command:set_property
>
> SET_PROPERTY(
>  DIRECTORY "${CMAKE_CURRENT_SOURCE_DIRECTORY}"
>  APPEND
>  ADDITIONAL_MAKE_CLEAN_FILES "./libopts/.libs/libopts.la"
> )
>
> But beware of this issue when using ADDITIONAL_MAKE_CLEAN_FILES
>
> http://public.kitware.com/Bug/view.php?id=8164
>
> -- if there is no *target* present in the CMakeLists.txt, then the
> directory does not count as a "directory" in the cmake sense, so the
> directory property will be ignored.

Thanks for the warning.  In my case my work around of using the path
to the directory of the file and placing the cmake commands in the
parent directory seems to be working.


-- 
Aaron Turner
http://synfin.net/
http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows
Those who would give up essential Liberty, to purchase a little
temporary Safety,
deserve neither Liberty nor Safety.
    -- Benjamin Franklin
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to