Skip to content
Snippets Groups Projects
Commit 47ac7b58 authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'CMake_to_build_Debug-msvc' into 'master'

CMake changes to build CoMISo with MSVC in Debug mode

See merge request CoMISo/CoMISo!29
parents 9fa600b6 0d0a6d81
No related branches found
No related tags found
No related merge requests found
CMakeLists.txt 100644 → 100755
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment