ACTIVATE_MSVC_PRECOMPILED_HEADERS CMake option was missing here.

This commit is contained in:
Clément Jamin 2012-06-09 08:53:28 +00:00
parent b948543cc6
commit 298e56aa92
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@ if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6)
endif()
endif()
# Creates a new CMake option, turned ON by default
option(ACTIVATE_MSVC_PRECOMPILED_HEADERS
"Activate precompiled headers in MSVC"
ON)
# Macro to add precompiled headers for MSVC
MACRO(ADD_MSVC_PRECOMPILED_HEADER PrecompiledHeader PrecompiledSource SourcesVar)
IF(MSVC AND ACTIVATE_MSVC_PRECOMPILED_HEADERS)