diff --git a/.github/workflows/macos-linux-conda.yml b/.github/workflows/macos-linux-conda.yml index e71d3a22bd706447d24008215fe13b48deb88c10..b551e032e41321afc0601352d475ffffc331d62e 100644 --- a/.github/workflows/macos-linux-conda.yml +++ b/.github/workflows/macos-linux-conda.yml @@ -31,17 +31,17 @@ jobs: run: | conda activate eigenpy conda install cmake -c main - + - name: Build EigenPy shell: bash -l {0} run: | conda activate eigenpy echo $CONDA_PREFIX - + mkdir build cd build - cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python3) + cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python3) -DGENERATE_PYTHON_STUBS=ON make make build_tests export CTEST_OUTPUT_ON_FAILURE=1 diff --git a/CMakeLists.txt b/CMakeLists.txt index 609c3429b1ea620913e6d21e96b6cc73c3fae785..7be9675b801722bcdf0e16de13610c3e7c6324f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,6 @@ SET(CMAKE_VERBOSE_MAKEFILE True) # ---------------------------------------------------- OPTION(INSTALL_DOCUMENTATION "Generate and install the documentation" OFF) OPTION(SUFFIX_SO_VERSION "Suffix library name with its version" OFF) -CMAKE_DEPENDENT_OPTION(GENERATE_PYTHON_STUBS "Generate the Python stubs associated to the Python library" OFF "NOT WIN32" OFF) IF(DEFINED BUILD_UNIT_TESTS) MESSAGE(AUTHOR_WARNING "BUILD_UNIT_TESTS is deprecated. Use BUILD_TESTING instead.\ @@ -44,6 +43,9 @@ INCLUDE(cmake/boost.cmake) INCLUDE(cmake/python.cmake) INCLUDE(cmake/ide.cmake) INCLUDE(cmake/apple.cmake) +INCLUDE(CMakeDependentOption) + +CMAKE_DEPENDENT_OPTION(GENERATE_PYTHON_STUBS "Generate the Python stubs associated to the Python library" OFF "NOT WIN32" OFF) STRING(REPLACE "-pedantic" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})