Re: [CMake] Build library with specific compil flags for a few files

2010-09-28 Thread pellegrini
Hi Michael, so if I get you right I should organize my library as follow: src/ Compiler/G95_Fortran.cmake CMakeLists.txt my_general_f90_src_files special_flag_src/ Compiler/G95_Fortran.cmake CMakeLists.txt my_special_f90_src_files where the nested CMake

Re: [CMake] Build library with specific compil flags for a few files

2010-09-28 Thread Michael Wild
On 28. Sep, 2010, at 16:08 , pellegrini wrote: > Hello everybody, > > I have a library for which almost all the files should be compiled (e.g. g95) > with the same compilation flags (that I will call later flag_debug, > flag_release ...) excepted a few ones for which I have to use slightly >

[CMake] Build library with specific compil flags for a few files

2010-09-28 Thread pellegrini
Hello everybody, I have a library for which almost all the files should be compiled (e.g. g95) with the same compilation flags (that I will call later flag_debug, flag_release ...) excepted a few ones for which I have to use slightly different compilation flags (called later flag1_debug, fla