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

Commit

Permalink
Set debug postfix in CMake
Browse files Browse the repository at this point in the history
So you are able to install a debug and release build into the same
location.
  • Loading branch information
fegorsch committed May 8, 2018
1 parent ec4e452 commit f90d36d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ else()
project(json11 VERSION 1.0.0 LANGUAGES CXX)
endif()

if(NOT CMAKE_DEBUG_POSTFIX)
set(CMAKE_DEBUG_POSTFIX d)
endif()

enable_testing()

option(JSON11_BUILD_TESTS "Build unit tests" OFF)
Expand Down

0 comments on commit f90d36d

Please sign in to comment.