[CMake] Building arguments to target_comple_definitions()
    Chuck Atkins 
    chuck.atkins at kitware.com
       
    Wed Oct 10 15:10:39 EDT 2018
    
    
  
Hi Robb,
Are you adding the appropriate visibility, i.e. PUBLIC, PRIVATE, or
INTERFACE?  You should be able to do the following:
# Translates to -DFOODEF1=hello -DFOODEF2=world
target_compile_definitions(fooTarget PRIVATE FOODEF1=hello FOODEF2=world)
# Translates to -DBARDEF1=baz -DBARDEF2
target_compile_definitions(barTarget PRIVATE BARDEF1=baz BARDEF2)
- Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20181010/8a4b86c3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 124449 bytes
Desc: not available
URL: <https://cmake.org/pipermail/cmake/attachments/20181010/8a4b86c3/attachment-0001.png>
    
    
More information about the CMake
mailing list