Skip to content

Commit

Permalink
Exclude file that calls system() from build
Browse files Browse the repository at this point in the history
system() is unavailable on iOS. Fortunately the caller function is not
used elsewhere so it's possible to simply remove source file from the
set of files to compile
  • Loading branch information
p12tic committed Sep 21, 2022
1 parent 4263955 commit 2686c7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/third_party/numerics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ aux_source_directories(SOURCES "Source Files\\SUPERLU" SUPERLU)
aux_source_directories(SOURCES "Source Files\\ARPACK" ARPACK)
aux_source_directories(SOURCES "Source Files\\ARPACK_UTIL" ARPACK_UTIL)

# This file uses system() which is not available on iOS. The caller function is not used elsewhere
# so just remove source file from the set of files to compile
list(REMOVE_ITEM SOURCES "LIBF2C/system_.c")

add_library(geogram_num_3rdparty ${SOURCES})

if(UNIX)
Expand Down

0 comments on commit 2686c7f

Please sign in to comment.