mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
cmake - add _d debug postfix for libraries on Windows
This commit is contained in:
@@ -173,6 +173,12 @@ message(STATUS "INCLUDEDIR: ${INCLUDEDIR}")
|
|||||||
|
|
||||||
set(IFCOPENSHELL_EXPORT_TARGETS "${PROJECT_NAME}Targets")
|
set(IFCOPENSHELL_EXPORT_TARGETS "${PROJECT_NAME}Targets")
|
||||||
|
|
||||||
|
# On Windows Release and Debug binaries are not compatible.
|
||||||
|
# So we add a postfix to avoid issues and allow release and debug installations to coexist.
|
||||||
|
if(WIN32)
|
||||||
|
set(CMAKE_DEBUG_POSTFIX "_d")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(BUILD_SHARED_LIBS)
|
if(BUILD_SHARED_LIBS)
|
||||||
add_definitions(-DIFC_SHARED_BUILD)
|
add_definitions(-DIFC_SHARED_BUILD)
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
|
|||||||
Reference in New Issue
Block a user