1
0
Fork 0

[F] Fix add_subdirectory test

This commit is contained in:
seleznevae 2020-02-23 09:19:51 +03:00
parent 594cbe83c7
commit 7b5d419aa4
2 changed files with 2 additions and 2 deletions

View File

@ -271,10 +271,9 @@ script:
- rm -rf _install_foo
- cd ../../build
# Test subdirectory
# Test cmake integration via `add_subdirectory`
- cd ..
- rm -r build/*
- mkdir build
- ln -s `pwd` tests/add_subdirectory_tests/libfort
- cd tests/add_subdirectory_tests/
- cmake -H. -B_build -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_INSTALL_PREFIX=./_install_foo

View File

@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.0)
project(foo)
set(FORT_ENABLE_TESTING OFF CACHE INTERNAL "")
add_subdirectory(libfort)
# Create target that depend on libfort and check they'll compile ok