#3353: add POCO_NO_FORK_EXEC CMake option

This commit is contained in:
Günter Obiltschnig
2021-11-05 13:00:08 +01:00
parent 35c03912c5
commit c908cbe6fe

View File

@@ -202,6 +202,13 @@ else()
message(STATUS "Using internal sqlite, zlib, pcre, expat, ...")
endif()
# Disable fork exec
option(POCO_NO_FORK_EXEC "Set to OFF|ON (default is OFF) to disable use of fork() and exec*() which are not allowed on some Apple platforms (iOS, watchOS, iPadOS, tvOS)." OFF)
if(POCO_NO_FORK_EXEC)
add_definitions(-DPOCO_NO_FORK_EXEC=1)
endif()
include(DefinePlatformSpecifc)
# Collect the built libraries and include dirs, the will be used to create the PocoConfig.cmake file