Skip to content

Commit

Permalink
+ Fix PCH issue with VS
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 30, 2014
1 parent f890d1d commit 7d42748
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cMake/FreeCadMacros.cmake
Expand Up @@ -171,7 +171,11 @@ endmacro(generate_from_py)
MACRO(ADD_MSVC_PRECOMPILED_HEADER TargetName PrecompiledHeader PrecompiledSource SourcesVar)
IF(MSVC)
GET_FILENAME_COMPONENT(PrecompiledBasename ${PrecompiledHeader} NAME_WE)
SET(PrecompiledBinary ${CMAKE_CURRENT_BINARY_DIR}/${TargetName}.pch)
IF(MSVC_IDE)
SET(PrecompiledBinary "$(IntDir)\\$(TargetName).pch")
ELSEIF(MSVC_IDE)
SET(PrecompiledBinary ${CMAKE_CURRENT_BINARY_DIR}/${TargetName}.pch)
ENDIF(MSVC_IDE)
SET(Sources ${${SourcesVar}})

SET_SOURCE_FILES_PROPERTIES(${PrecompiledSource}
Expand Down

0 comments on commit 7d42748

Please sign in to comment.