mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 09:30:48 +08:00
Configuration - Option to disable PCH after enabling #102
After enabling PCH it was not possible to disable back. New CMake feature used for disabling
This commit is contained in:
@@ -150,6 +150,10 @@ endif()
|
|||||||
|
|
||||||
if (CMAKE_VERSION VERSION_LESS "3.16")
|
if (CMAKE_VERSION VERSION_LESS "3.16")
|
||||||
OCCT_CHECK_AND_UNSET (BUILD_USE_PCH)
|
OCCT_CHECK_AND_UNSET (BUILD_USE_PCH)
|
||||||
|
elseif (NOT BUILD_USE_PCH)
|
||||||
|
set (CMAKE_DISABLE_PRECOMPILE_HEADERS ON)
|
||||||
|
else ()
|
||||||
|
set (CMAKE_DISABLE_PRECOMPILE_HEADERS OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT DEFINED BUILD_INCLUDE_SYMLINK)
|
if (NOT DEFINED BUILD_INCLUDE_SYMLINK)
|
||||||
|
|||||||
Reference in New Issue
Block a user