File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,6 @@ option(
27
27
"Build gtest with internal symbols hidden in shared libraries."
28
28
OFF )
29
29
30
- set (CMAKE_DEBUG_POSTFIX "d" CACHE STRING "Generate debug library name with a postfix." )
31
-
32
30
# Defines pre_project_set_up_hermetic_build() and set_up_hermetic_build().
33
31
include (cmake/hermetic_build.cmake OPTIONAL )
34
32
Original file line number Diff line number Diff line change @@ -158,6 +158,10 @@ function(cxx_library_with_type name type cxx_flags)
158
158
set_target_properties (${name}
159
159
PROPERTIES
160
160
COMPILE_FLAGS "${cxx_flags} " )
161
+ # Generate debug library name with a postfix.
162
+ set_target_properties (${name}
163
+ PROPERTIES
164
+ DEBUG_POSTFIX "d" )
161
165
if (BUILD_SHARED_LIBS OR type STREQUAL "SHARED" )
162
166
set_target_properties (${name}
163
167
PROPERTIES
You can’t perform that action at this time.
0 commit comments