Pyagrum fails on macOS 10.13.6 using cmake 3.12
On a new Mac running macOS 10.13.6, the compilation of pyagrum fails. It looks like cmake can't include files properly, and fails running one of the included commands (swig_add_library).
cmake 3.12 installed with homebrew and latest aGrum source code from gitlab.
Command output:
python act test release pyAgrum aGrUM compilation tool 2.1 (c) 2010-15 aGrUM Team
-- Options static forced by target pyAgrum
-- options.python=3 -- Forcing the compilation of all modules for wrappers invocation : act test pyAgrum release --modules=BASE+BN+CN+FMDP+ID+LEARNING+PRM --destination=/usr --jobs=5 --tests=all --python=3 --mvsc=False --mvsc32=False --build=all --quiet --withSQL --static_lib
-- CMake Deprecation Warning at CMakeLists.txt:2 (cmake_policy): -- The OLD behavior for policy CMP0042 will be removed from a future version -- of CMake. -- The cmake-policies(7) manual explains that the OLD behaviors of all -- policies are deprecated and that a policy should be set to OLD only under -- specific short-term circumstances. Projects should be ported to the NEW -- behavior and not rely on setting a policy to OLD. -- CMake Deprecation Warning at CMakeLists.txt:6 (cmake_policy): -- The OLD behavior for policy CMP0048 will be removed from a future version -- of CMake. -- The cmake-policies(7) manual explains that the OLD behaviors of all -- policies are deprecated and that a policy should be set to OLD only under -- specific short-term circumstances. Projects should be ported to the NEW -- behavior and not rely on setting a policy to OLD. -- Try C++14 flag = [-std=c++14] -- Performing Test CXX14_FLAG_DETECTED -- Performing Test CXX14_FLAG_DETECTED - Success -- ** aGrUM Notification: setting options for Wrappers -- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) -- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) -- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND) -- CMake Deprecation Warning at src/CMakeLists.txt:7 (cmake_policy): -- The OLD behavior for policy CMP0018 will be removed from a future version -- of CMake. -- The cmake-policies(7) manual explains that the OLD behaviors of all -- policies are deprecated and that a policy should be set to OLD only under -- specific short-term circumstances. Projects should be ported to the NEW -- behavior and not rely on setting a policy to OLD. -- ** aGrUM Notification: Checking dependencies ... -- ** aGrUM Notification: Building all -- ** aGrUM Notification: Can not find <sql.h>. Nanodbc support is OFF. -- ** aGrUM notification : Coco/R not found : you cannot change atg files ! -- ** aGrUM Notification: Generating files lists -- ** aGrUM Notification: (+) adding BASE -- ** aGrUM Notification: (+) adding BN -- ** aGrUM Notification: (+) adding CN -- ** aGrUM Notification: (+) adding FMDP -- ** aGrUM Notification: (+) adding ID -- ** aGrUM Notification: (+) adding PRM -- ** aGrUM Notification: (+) adding LEARNING -- ** aGrUM notification : Doxygen not found : you cannot generate documentation ! -- Found /Users/stef/anaconda/envs/py3/bin/python (found version "1.4") -- Command "/usr/local/bin/swig -swiglib" failed with output: -- ** aGrUM notification : Swig 3 found -- CMake Error at wrappers/CMakeLists.txt:10 (include): -- include called with wrong number of arguments. include() only takes one -- file. -- CMake Deprecation Warning at wrappers/pyAgrum/CMakeLists.txt:5 (cmake_policy): -- The OLD behavior for policy CMP0018 will be removed from a future version -- of CMake. -- The cmake-policies(7) manual explains that the OLD behaviors of all -- policies are deprecated and that a policy should be set to OLD only under -- specific short-term circumstances. Projects should be ported to the NEW -- behavior and not rely on setting a policy to OLD. -- Found /usr/local/var/pyenv/versions/3.6.5/bin/python3 (found suitable version "3.6.5", minimum required is "3") -- ================================ -- python version : 3.6.5 -- python installation /usr/lib/python3.6/site-packages -- python include /usr/local/var/pyenv/versions/3.6.5/include/python3.6m -- python library /usr/local/var/pyenv/versions/3.6.5/lib/libpython3.6m.a -- ================================ -- CMake Error at wrappers/pyAgrum/CMakeLists.txt:107 (swig_add_library): -- Unknown CMake command "swig_add_library". -- Configuring incomplete, errors occurred! See also "/Users/stef/workarea/github/aGrUM/build/release/CMakeFiles/CMakeOutput.log". See also "/Users/stef/workarea/github/aGrUM/build/release/CMakeFiles/CMakeError.log". -- Received error 1 -- Stopped.
------- end of output