[F] Fix add_subdirectory test
This commit is contained in:
parent
594cbe83c7
commit
7b5d419aa4
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user