[F] Fix add_subdirectory test
This commit is contained in:
parent
594cbe83c7
commit
7b5d419aa4
@ -271,10 +271,9 @@ script:
|
|||||||
- rm -rf _install_foo
|
- rm -rf _install_foo
|
||||||
- cd ../../build
|
- cd ../../build
|
||||||
|
|
||||||
# Test subdirectory
|
# Test cmake integration via `add_subdirectory`
|
||||||
- cd ..
|
- cd ..
|
||||||
- rm -r build/*
|
- rm -r build/*
|
||||||
- mkdir build
|
|
||||||
- ln -s `pwd` tests/add_subdirectory_tests/libfort
|
- ln -s `pwd` tests/add_subdirectory_tests/libfort
|
||||||
- cd tests/add_subdirectory_tests/
|
- cd tests/add_subdirectory_tests/
|
||||||
- cmake -H. -B_build -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_INSTALL_PREFIX=./_install_foo
|
- 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)
|
project(foo)
|
||||||
|
|
||||||
|
set(FORT_ENABLE_TESTING OFF CACHE INTERNAL "")
|
||||||
add_subdirectory(libfort)
|
add_subdirectory(libfort)
|
||||||
|
|
||||||
# Create target that depend on libfort and check they'll compile ok
|
# Create target that depend on libfort and check they'll compile ok
|
||||||
|
Loading…
Reference in New Issue
Block a user