Re: [CMake] Removing files from a globbed list

2009-06-22 Thread Adolfo Rodríguez
On Mon, Jun 22, 2009 at 4:43 PM, James C. Sutherland james.sutherl...@utah.edu wrote: I am trying to add most files from a directory to a variable. I first glob the source files, and then want to remove the unwanted files from the resulting string. Here is what I have: set( empty )

[CMake] Removing files from a globbed list

2009-06-22 Thread James C. Sutherland
I am trying to add most files from a directory to a variable. I first glob the source files, and then want to remove the unwanted files from the resulting string. Here is what I have: set( empty ) file( GLOB f90_src src/*.f90 ) string( REPLACE ${PROJECT_SOURCE_DIR}/src/ark_m.f90

Re: [CMake] Removing files from a globbed list

2009-06-22 Thread Alexander Neundorf
On Monday 22 June 2009, James C. Sutherland wrote: I am trying to add most files from a directory to a variable. I first glob the source files, and then want to remove the unwanted files from the resulting string. Really, don't do that. Just add all files you want to compile explicitely to