Skip to content

Commit

Permalink
Configuration - Option to disable PCH after enabling Open-Cascade-SAS…
Browse files Browse the repository at this point in the history
…#102

After enabling PCH it was not possible to disable back.
New CMake feature used for disabling
  • Loading branch information
dpasukhi committed Oct 13, 2024
1 parent f336684 commit 83b4e3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 83b4e3f

Please sign in to comment.