On 13/04/16 09:20 AM, Tamás Kenéz wrote:
Okay, I see. The problem is that the ${DEF} is quoted so it won't fall
apart into separate arguments.
Tamás
Thanks, I'll give that a try tonight.
Mike
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://w
Okay, I see. The problem is that the ${DEF} is quoted so it won't fall
apart into separate arguments.
Tamás
On Wed, Apr 13, 2016 at 4:54 AM, Michael Surette
wrote:
> On 2016-04-12 06:57 PM, Tamás Kenéz wrote:
>
>> I don't get how come the macro works because
>> `target_compile_definitions` needs
On 2016-04-12 06:57 PM, Tamás Kenéz wrote:
I don't get how come the macro works because
`target_compile_definitions` needs at least 3 parameters. The second one
must be PRIVATE|PUBLIC|INTERFACE.
Tamas
On Tue, Apr 12, 2016 at 7:43 AM, Michael Surette
mailto:mjsure...@gmail.com>> wrote:
I wou
I don't get how come the macro works because `target_compile_definitions`
needs at least 3 parameters. The second one must be
PRIVATE|PUBLIC|INTERFACE.
Tamas
On Tue, Apr 12, 2016 at 7:43 AM, Michael Surette
wrote:
> I would like to use set target properties from within a function. ie
>
> functi
I would like to use set target properties from within a function. ie
function(MINE TGT DEF)
target_compile_definitions("${TGT}" "${DEF}")
endfunction(MINE TGT DEF)
This doesn't work. If I change it to a macro, it does.
macro(MINE TGT DEF)
target_compile_definitions("${TGT}" "${DEF}")
endm