Skip to content

Commit

Permalink
fix(CMakeLists.txt): do not link binaries when building static library
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed May 8, 2018
1 parent 0784eb0 commit 99573e3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,11 @@ else()
endif()

add_subdirectory(src)
add_subdirectory(tools)

if(GTEST_FOUND)
add_subdirectory(test)
if(BUILD_SHARED_LIBS)
add_subdirectory(tools)

if(GTEST_FOUND)
add_subdirectory(test)
endif()
endif()

0 comments on commit 99573e3

Please sign in to comment.