Skip to content
This repository was archived by the owner on Mar 26, 2020. It is now read-only.

Commit f90d36d

Browse files
committed
Set debug postfix in CMake
So you are able to install a debug and release build into the same location.
1 parent ec4e452 commit f90d36d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ else()
66
project(json11 VERSION 1.0.0 LANGUAGES CXX)
77
endif()
88

9+
if(NOT CMAKE_DEBUG_POSTFIX)
10+
set(CMAKE_DEBUG_POSTFIX d)
11+
endif()
12+
913
enable_testing()
1014

1115
option(JSON11_BUILD_TESTS "Build unit tests" OFF)

0 commit comments

Comments
 (0)