I just installed CMake 3.0 and I'm trying out the new generator expressions for the target_compile_definitions() command.
I am doing this: target_compile_definitions( ${project_name} PRIVATE ${general_defs} PRIVATE "$<$<CONFIG:debug>:${debug_defs}>" PRIVATE "$<$<CONFIG:release>:${release_defs}>" ) The problem here is that there are many "release" configurations provided by CMake by default. I would like a way to target "optimized" and "unoptimized" configurations, regardless of name. I'm working on a generic CMake framework (written in CMake language) that hides away some details of using CMake directly for complex tasks. As such I can't really know from a generic level which configurations (by name) will exist. Users could add more or less. The best I can do from the framework level is target "optimized" or "unoptimized" configs. Any way to do this with 3.0? Thanks in advance. -- 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