diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index f7e653a8a..6170cde27 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -18,7 +18,7 @@ if(NOT WIN32) endif(NOT WIN32) set(PCH_SOURCES_GCH "") -if(CMAKE_COMPILER_IS_GNUCXX) +if(USE_PCH AND CMAKE_COMPILER_IS_GNUCXX) string(REPLACE " " ";" PCH_CXXFLAGS "${CXXFLAGS} ${CMAKE_CXX_FLAGS}") file(GLOB PCH_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h") @@ -57,7 +57,7 @@ if(CMAKE_COMPILER_IS_GNUCXX) DEPENDS ${INCLUDES_LIST} VERBATIM ) endforeach(PCH_SOURCE ${PCH_SOURCES}) -endif(CMAKE_COMPILER_IS_GNUCXX) +endif(USE_PCH AND CMAKE_COMPILER_IS_GNUCXX) # Add a custom target to the above file add_custom_target(headers DEPENDS version ${CMAKE_CURRENT_BINARY_DIR}/version_build ${PCH_SOURCES_GCH}) |
