Re: [CMake] config-specific compiler definitions don't work properly

2015-07-22 Thread Xi Yang
riants. They do support generator expressions, however, so you could use these instead: set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS $<$:FOO> $<$:BAR>) Petr On Fri, Jul 17, 2015 at 3:08 PM, Xi Yang wrote: Hi everyone! I'm trying to use config-specific definitions,

[CMake] config-specific compiler definitions don't work properly

2015-07-17 Thread Xi Yang
Hi everyone! I'm trying to use config-specific definitions, but it seems doesn't work in VS2013. This is the CMakeLists.txt: cmake_minimum_required(VERSION 3.0) set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS_DEBUG FOO ) set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS_RELEASE