Skip to content

Commit af20b14

Browse files
author
Andrew Aye
committed
Fix for overlapping different configuration PCH result when using
multi-config generators (like MSVC).
1 parent 6988a51 commit af20b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/macros/Private.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ function(_pxr_enable_precompiled_header TARGET_NAME)
480480
# Headers live in subdirectories.
481481
set(rel_output_header_path "${PXR_PREFIX}/${TARGET_NAME}/${output_header_name}")
482482
set(abs_output_header_path "${PROJECT_BINARY_DIR}/include/${rel_output_header_path}")
483-
set(abs_precompiled_path ${PROJECT_BINARY_DIR}/include/${PXR_PREFIX}/${TARGET_NAME}/${precompiled_name})
483+
set(abs_precompiled_path ${PROJECT_BINARY_DIR}/include/${PXR_PREFIX}/${TARGET_NAME}/${CMAKE_BUILD_TYPE}/${precompiled_name})
484484

485485
# Additional compile flags to use precompiled header. This will be
486486
set(compile_flags "")

0 commit comments

Comments
 (0)