mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user