I tried using
http://www.cmake.org/cmake/help/v3.3/variable/CMAKE_MAP_IMPORTED_CONFIG_CONFIG.html
in the following example:
cmake_minimum_required(VERSION 3.3)
project(Foo CXX)
set(CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO "Release")
add_library(foo SHARED IMPORTED)
get_property(VAR TARGET foo PROPERTY MAP_IMPORTED_CONFIG_RELWITHDEBINFO)
message("[${VAR}]")
When configuring this produces the output "[]" where I would expect
"[Release]".
Am I missing something obvious?
Nils
--
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-developers