Re: [CMake] set_target_properties to target openmp flag on an executable

2011-03-22 Thread Caner Candan
Perfect as ever. I just replaced the code by: -- PROJECT(test CXX) ADD_EXECUTABLE(test test.cpp) SET_TARGET_PROPERTIES(test PROPERTIES COMPILE_FLAGS "-fopenmp" LINK_FLAGS "-fopenmp") ---

Re: [CMake] set_target_properties to target openmp flag on an executable

2011-03-18 Thread Eric Noulard
2011/3/18 Caner Candan : > Hi all, > > Since I have several targets to compile, I was looking for a way to > set some specific flags to one target among all others. In my example > I would like to set the openmp flag to the target test and I got an > error with the code below: > > -

Re: [CMake] set_target_properties to target openmp flag on an executable

2011-03-18 Thread Rolf Eike Beer
> Hi all, > > Since I have several targets to compile, I was looking for a way to > set some specific flags to one target among all others. In my example > I would like to set the openmp flag to the target test and I got an > error with the code below: > > --

[CMake] set_target_properties to target openmp flag on an executable

2011-03-18 Thread Caner Candan
Hi all, Since I have several targets to compile, I was looking for a way to set some specific flags to one target among all others. In my example I would like to set the openmp flag to the target test and I got an error with the code below: