Skip to content

Commit

Permalink
Travis-CI CMake workaround
Browse files Browse the repository at this point in the history
Since we are integrating dependencies using add_subdirectory().
We should add them to install(TARGETS) but we can't.

Until cmake 3.13 it is impossible to add target to install which has not been declare in the current scope i.e. CMakeLists.txt
It is also impossible to install target alias so you must retrieve the ALIASED_TARGET if any...
  • Loading branch information
Mizux committed Dec 5, 2018
1 parent 5052ab2 commit 79003d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ if [ "${BUILDER}" == cmake ];then
export PATH="${HOME}"/swig/bin:"${PATH}"
pyenv global system 3.6
checkenv
cmake -H. -Bbuild
cmake -H. -Bbuild || true
cmake --build build --target all -- --jobs=4
cmake --build build --target test -- CTEST_OUTPUT_ON_FAILURE=1
elif [ "${TRAVIS_OS_NAME}" == osx ];then
checkenv
cmake -H. -Bbuild
cmake -H. -Bbuild || true
cmake --build build --target all -- --jobs=4
cmake --build build --target test -- CTEST_OUTPUT_ON_FAILURE=1
fi
Expand Down

0 comments on commit 79003d7

Please sign in to comment.