Skip to content

Commit 07353e4

Browse files
committed
Merge pull request #2698 from aaye/dev_pr_pch_location
PCH Location did not take into account the build configuration (Internal change: 2326831)
2 parents 6d76738 + af20b14 commit 07353e4

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
@@ -540,7 +540,7 @@ function(_pxr_enable_precompiled_header TARGET_NAME)
540540
# Headers live in subdirectories.
541541
set(rel_output_header_path "${PXR_PREFIX}/${TARGET_NAME}/${output_header_name}")
542542
set(abs_output_header_path "${PROJECT_BINARY_DIR}/include/${rel_output_header_path}")
543-
set(abs_precompiled_path ${PROJECT_BINARY_DIR}/include/${PXR_PREFIX}/${TARGET_NAME}/${precompiled_name})
543+
set(abs_precompiled_path ${PROJECT_BINARY_DIR}/include/${PXR_PREFIX}/${TARGET_NAME}/${CMAKE_BUILD_TYPE}/${precompiled_name})
544544

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

0 commit comments

Comments
 (0)