mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +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:
parent
f336684b26
commit
83b4e3f988
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user