mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 22:31:02 +00:00
cmake: avoid imported debug config only on MSVC
This commit is contained in:
@@ -271,6 +271,12 @@ endfunction()
|
|||||||
# by setting `MAP_IMPORTED_CONFIG_` we override the fallback, but multi-config builds
|
# by setting `MAP_IMPORTED_CONFIG_` we override the fallback, but multi-config builds
|
||||||
# has to be able to find a way to build a target for each config, otherwise configuration would fail.
|
# has to be able to find a way to build a target for each config, otherwise configuration would fail.
|
||||||
function(avoid_debug_imported_config_fallback)
|
function(avoid_debug_imported_config_fallback)
|
||||||
|
# Only needed on MSVC to avoid CRT mimsatch.
|
||||||
|
# On Unix it's usually okay to mix up Debug and Release configs and we shouldn't block it.
|
||||||
|
if(NOT MSVC)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
foreach(_target ${ARGN})
|
foreach(_target ${ARGN})
|
||||||
if(TARGET ${_target})
|
if(TARGET ${_target})
|
||||||
set_target_properties(${_target} PROPERTIES
|
set_target_properties(${_target} PROPERTIES
|
||||||
|
|||||||
Reference in New Issue
Block a user