mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-10-30 02:02:30 +00:00
#3353: add POCO_NO_FORK_EXEC CMake option
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user