[CMake] Re: File globbing with relative path

Jan Woetzel jw at mip.informatik.uni-kiel.de
Mon Jun 26 13:48:19 EDT 2006


jbd wrote:

>
>... i tried :
>FILE (GLOB SRC_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} Test*.cpp) 
>but it doesn't work.
>  
>

This works here with CMake 2.4.2:

FILE(GLOB FOO RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c*)
MESSAGE("DBG FOO=${FOO}")

Jan.



More information about the CMake mailing list