From eee20e23e199989dfde0f963bacd936805f6a2ed Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 24 Oct 2019 17:32:05 +0200 Subject: [PATCH] Fix RelWithDebInfo build on Linux --- CMakeLists.txt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f9c0469f6..9986aab7c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -271,13 +271,15 @@ if(NOT SLIC3R_STATIC) endif() function(slic3r_remap_configs targets from_Cfg to_Cfg) - string(TOUPPER ${from_Cfg} from_CFG) - - foreach(tgt ${targets}) - if(TARGET ${tgt}) - set_target_properties(${tgt} PROPERTIES MAP_IMPORTED_CONFIG_${from_CFG} ${to_Cfg}) - endif() - endforeach() + if(MSVC) + string(TOUPPER ${from_Cfg} from_CFG) + + foreach(tgt ${targets}) + if(TARGET ${tgt}) + set_target_properties(${tgt} PROPERTIES MAP_IMPORTED_CONFIG_${from_CFG} ${to_Cfg}) + endif() + endforeach() + endif() endfunction() if(TARGET Boost::system)