[CMake] Need help with COMPILE_DEFINITIONS_<CONFIG>
Carl Poirier
carl.poirier.2 at gmail.com
Mon Sep 14 15:35:33 EDT 2015
Hi folks,
I need some help setting the COMPILE_DEFINITIONS_<CONFIG>. I'm using the
Visual Studio 2008 generator. I use this command to do so which I took in
the notes <http://www.cmake.org/Wiki/CMake_2.6_Notes> when the feature was
added:
set_property(TARGET ${PrjName0} PROPERTY COMPILE_DEFINITIONS_DEBUG ATEST)
Then, once the solution and project is generated, I go into the project
properties under the C++ preprocessor and I can't see the define. Removing
the configuration name does set it correctly for all of them, so it leads
me to believe the rest of my CMakeLists.txt is fine:
set_property(TARGET ${PrjName0} PROPERTY COMPILE_DEFINITIONS ATEST)
So is this supposed to work?
Thank you,
Carl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150914/62585cf7/attachment.html>
More information about the CMake
mailing list