1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03: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:
dpasukhi 2024-10-13 09:02:57 +00:00
parent f336684b26
commit 83b4e3f988

View File

@ -150,6 +150,10 @@ endif()
if (CMAKE_VERSION VERSION_LESS "3.16")
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()
if (NOT DEFINED BUILD_INCLUDE_SYMLINK)