Skip to content

Commit 99573e3

Browse files
committed
fix(CMakeLists.txt): do not link binaries when building static library
1 parent 0784eb0 commit 99573e3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

CMakeLists.txt

+6-3
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,11 @@ else()
196196
endif()
197197

198198
add_subdirectory(src)
199-
add_subdirectory(tools)
200199

201-
if(GTEST_FOUND)
202-
add_subdirectory(test)
200+
if(BUILD_SHARED_LIBS)
201+
add_subdirectory(tools)
202+
203+
if(GTEST_FOUND)
204+
add_subdirectory(test)
205+
endif()
203206
endif()

0 commit comments

Comments
 (0)