Skip to content

Commit e7f71c7

Browse files
authored
Avoid installing static library PDB with ccache (#6057)
1 parent 0278d17 commit e7f71c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ if(MSVC OR MSVC_IDE)
338338
if(PDB_FILE)
339339
get_target_property(PDB_DIR ${PROJECT_NAME} PDB_OUTPUT_DIRECTORY_DEBUG)
340340
set(PDB_FILE "${PDB_DIR}/${PDB_FILE}.pdb")
341-
else()
341+
elseif(NOT CMAKE_CXX_COMPILER_LAUNCHER STREQUAL "ccache")
342342
# fallback to static lib symbols
343343
get_target_property(PDB_FILE ${PROJECT_NAME} COMPILE_PDB_NAME_DEBUG)
344344
if(PDB_FILE)

0 commit comments

Comments
 (0)