Commit 47ac7b58 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'CMake_to_build_Debug-msvc' into 'master'

CMake changes to build CoMISo with MSVC in Debug mode

See merge request !29
parents 9fa600b6 0d0a6d81
Pipeline #7054 canceled with stages
in 6 minutes and 49 seconds
......@@ -9,6 +9,7 @@ endif()
# add our macro directory to cmake search path
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set (CMAKE_DEBUG_POSTFIX "d")
include (ACGCommon)
......
......@@ -791,15 +791,9 @@ function (acg_add_library _target _libtype)
endif ()
endif ()
if( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
set ( postfix ${CMAKE_DEBUG_POSTFIX} )
else ()
set ( postfix "" )
endif ()
set( postfix $<IF:$<CONFIG:Debug>,${CMAKE_DEBUG_POSTFIX},"">)
set( fullname ${_target}${postfix} )
if (WIN32)
# copy exe file to "Build" directory
# Visual studio will create this file in a subdirectory so we can't use
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment