Hi.

I try to set a custom configurations like "Debug-Demo" and "Release-Demo".

I had used a snippet from wiki:
http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_specify_my_own_configurations_.28for_generators_that_allow_it.29_.3F
with additional modifying DEBUG_CONFIGURATIONS, because the "Debug-Demo"
configuration should be linked with debug version of libraries.

if(CMAKE_CONFIGURATION_TYPES)
set(CMAKE_CONFIGURATION_TYPES Debug Release Debug-Demo Release-Demo)
set(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING
"Reset the configurations to what we need"
FORCE)
set_property(GLOBAL PROPERTY DEBUG_CONFIGURATIONS "Debug;Debug-Demo")
endif()

But what I got is bunch of errors at generation time.
CMake Error: Error evaluating generator expression: $<CONFIG:DEBUG-DEMO>

If I delete the "set_property" line, I get Debug-Demo configuration which
is kind of optimized configuration (as default).

So, does I have missed some notes about using a hyphen chars in
configuration names, or is it a bug in the cmake?

Alexander Iljin
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to