[CMake] Fwd: set_target_properties and language specific COMPILE_FLAGS

Nicolas Bock nicolasbock at gmail.com
Fri Aug 1 12:54:13 EDT 2014


Hi,

I am building a library containing Fortran and C sources. I would like
to add language specific compile flags without affecting the global
compile flags:

set_target_properties( foo PROPERTIES C_FLAGS "-fopenmp" Fortran_FLAGS
"-openmp" )

However, it seems there is only COMPILE_FLAGS which presumably affects
both languages.

Thanks already,

nick


More information about the CMake mailing list