Skip to content

Commit b5855a7

Browse files
committed
only set install targets when not doing unit tests
1 parent 5ecf290 commit b5855a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,14 @@ ExternalProject_Add(gtest
8080
endif()
8181
enable_testing()
8282
add_subdirectory(test)
83-
endif()
8483

84+
else()
8585
get_directory_property(TARGETS BUILDSYSTEM_TARGETS)
8686
install(
8787
TARGETS ${TARGETS}
8888
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
8989
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
90+
endif()
9091

9192
install(
9293
FILES src/scitokens.h

0 commit comments

Comments
 (0)