Travis-CI CMake workaround
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...
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user