Skip to content

Commit 01c6f70

Browse files
committed
Add postfix to debug library and binary names
1 parent 73d7a38 commit 01c6f70

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
2424
# SET(CMAKE_BUILD_TYPE Debug)
2525
SET(CMAKE_BUILD_TYPE Release)
2626

27+
SET(CMAKE_DEBUG_POSTFIX _dbg)
28+
2729
# Set installation destination and prefix path to find libraries installed on
2830
# this sytem. If this is not specified, /usr/local/ will be used.
2931
#

src/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ IF(GOOGLEPERFTOOLS_FOUND)
4747
ENDIF()
4848

4949
CONFIGURE_FILE(git_config.hpp.in git_config.hpp)
50+
SET_TARGET_PROPERTIES(std PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
5051

5152
# INSTALL(TARGETS enrich DESTINATION bin)
5253
INSTALL(TARGETS std DESTINATION bin)

0 commit comments

Comments
 (0)