[CMake] Syntax of set_target_properties

Sylvain Benner benner at virtools.com
Mon Nov 20 05:46:07 EST 2006


Have you tried this ?

set_target_properties( test PROPERTIES
                       COMPILE_FLAGS -DTEST -DDIR="./" )

Just an idea, I'm not sure it will work.

Sylvain

----- Original Message ----- 
From: "Timo Rumland" <cr at olympclan.de>
To: <cmake at cmake.org>
Sent: Monday, November 20, 2006 11:19 AM
Subject: [CMake] Syntax of set_target_properties


> Hallo,
> 
> I can't figure out what's wrong with my set_target_properties syntax.
> My target is "test" and I want to add two compiler options (defines),
> -DTEST and -DDIR="./".
> 
> I tried the following:
> 
> set_target_properties( test PROPERTIES
>                       COMPILE_FLAGS -DTEST
>                       COMPILE_FLAGS -DDIR="./" )
> 
> But then only -DDIR="./" is added to my VS project.
> 
> Any idea why?
>                       
> Thanks a lot
> 
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list