Skip to content

Commit 7735334

Browse files
Merge pull request #3940 from anpol:pdb-static-lib
PiperOrigin-RevId: 461703446 Change-Id: I61773eafa6d6bf6294218a5117fdebf5dd8a7bb1
2 parents 43a6712 + a2d6ee8 commit 7735334

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

googletest/cmake/internal_utils.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ function(cxx_library_with_type name type cxx_flags)
162162
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
163163
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
164164
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
165-
PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
165+
PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
166+
COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
166167
# make PDBs match library name
167168
get_target_property(pdb_debug_postfix ${name} DEBUG_POSTFIX)
168169
set_target_properties(${name}

0 commit comments

Comments
 (0)