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")
---
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:
>
> -
> 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:
>
> --
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: