Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Only inlcude gtest if standalone build
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilritz authored and dagar committed Nov 2, 2019
1 parent 7c1e38d commit d76b704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ add_subdirectory(l1)
add_subdirectory(tecs)
add_subdirectory(validation)

if(BUILD_TESTING)
if(BUILD_TESTING AND CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
add_subdirectory(test)
endif()

Expand Down

0 comments on commit d76b704

Please sign in to comment.