From c908cbe6fe445cade7572ba43eb5dd9bf461759b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Obiltschnig?= Date: Fri, 5 Nov 2021 13:00:08 +0100 Subject: [PATCH] #3353: add POCO_NO_FORK_EXEC CMake option --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e0527296..5c9ca0fef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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