Skip to content

Commit

Permalink
[F] Fix add_subdirectory test
Browse files Browse the repository at this point in the history
  • Loading branch information
seleznevae committed Feb 23, 2020
1 parent 594cbe8 commit 7b5d419
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/add_subdirectory_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b5d419

Please sign in to comment.