Skip to content

Commit

Permalink
fix: pre-compiled header conflicts across different build configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
tszirr committed Jul 8, 2013
1 parent fd2f1ca commit 681d732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake-modules/PrecompiledHeader.cmake
@@ -1,7 +1,7 @@
MACRO(ADD_MSVC_PRECOMPILED_HEADER PrecompiledHeader PrecompiledSource SourcesVar)
IF(MSVC)
GET_FILENAME_COMPONENT(PrecompiledBasename ${PrecompiledHeader} NAME_WE)
SET(PrecompiledBinary "${CMAKE_CURRENT_BINARY_DIR}/${PrecompiledBasename}.pch")
SET(PrecompiledBinary "${CMAKE_CFG_INTDIR}/${PrecompiledBasename}.pch")
SET(Sources ${${SourcesVar}})

SET_SOURCE_FILES_PROPERTIES(${PrecompiledSource}
Expand Down

0 comments on commit 681d732

Please sign in to comment.