Skip to content

Commit 9557d29

Browse files
Merge pull request google#1481 from dneto0/debug-postfix
Use DEBUG_POSTFIX instead of CMAKE_DEBUG_POSTFIX
2 parents fe11442 + 66d7175 commit 9557d29

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

googletest/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ option(
2727
"Build gtest with internal symbols hidden in shared libraries."
2828
OFF)
2929

30-
set(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "Generate debug library name with a postfix.")
31-
3230
# Defines pre_project_set_up_hermetic_build() and set_up_hermetic_build().
3331
include(cmake/hermetic_build.cmake OPTIONAL)
3432

googletest/cmake/internal_utils.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ function(cxx_library_with_type name type cxx_flags)
158158
set_target_properties(${name}
159159
PROPERTIES
160160
COMPILE_FLAGS "${cxx_flags}")
161+
# Generate debug library name with a postfix.
162+
set_target_properties(${name}
163+
PROPERTIES
164+
DEBUG_POSTFIX "d")
161165
if (BUILD_SHARED_LIBS OR type STREQUAL "SHARED")
162166
set_target_properties(${name}
163167
PROPERTIES

0 commit comments

Comments
 (0)