Skip to content

Commit e2b70f0

Browse files
committed
ci: set GENERATE_PYTHON_STUBS on Linux/OS X
1 parent be5e180 commit e2b70f0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/macos-linux-conda.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ jobs:
3131
run: |
3232
conda activate eigenpy
3333
conda install cmake -c main
34-
34+
3535
- name: Build EigenPy
3636
shell: bash -l {0}
3737
run: |
3838
conda activate eigenpy
3939
echo $CONDA_PREFIX
40-
40+
4141
mkdir build
4242
cd build
4343
44-
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python3)
44+
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python3) -DGENERATE_PYTHON_STUBS=ON
4545
make
4646
make build_tests
4747
export CTEST_OUTPUT_ON_FAILURE=1

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ SET(CMAKE_VERBOSE_MAKEFILE True)
2727
# ----------------------------------------------------
2828
OPTION(INSTALL_DOCUMENTATION "Generate and install the documentation" OFF)
2929
OPTION(SUFFIX_SO_VERSION "Suffix library name with its version" OFF)
30-
CMAKE_DEPENDENT_OPTION(GENERATE_PYTHON_STUBS "Generate the Python stubs associated to the Python library" OFF "NOT WIN32" OFF)
3130

3231
IF(DEFINED BUILD_UNIT_TESTS)
3332
MESSAGE(AUTHOR_WARNING "BUILD_UNIT_TESTS is deprecated. Use BUILD_TESTING instead.\
@@ -44,6 +43,9 @@ INCLUDE(cmake/boost.cmake)
4443
INCLUDE(cmake/python.cmake)
4544
INCLUDE(cmake/ide.cmake)
4645
INCLUDE(cmake/apple.cmake)
46+
INCLUDE(CMakeDependentOption)
47+
48+
CMAKE_DEPENDENT_OPTION(GENERATE_PYTHON_STUBS "Generate the Python stubs associated to the Python library" OFF "NOT WIN32" OFF)
4749

4850
STRING(REPLACE "-pedantic" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
4951

0 commit comments

Comments
 (0)