Skip to content

Commit 70b8d01

Browse files
committed
Compile static library explicitly
1 parent 2274a3d commit 70b8d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if(CARES_INCLUDE_DIR AND CARES_LIBRARY)
7979
else()
8080
set(TRANTOR_SOURCES ${TRANTOR_SOURCES} trantor/net/inner/NormalResolver.cc)
8181
endif()
82-
add_library(trantor ${TRANTOR_SOURCES})
82+
add_library(trantor STATIC ${TRANTOR_SOURCES})
8383
set_property(TARGET trantor PROPERTY CXX_STANDARD 14)
8484
set_property(TARGET trantor PROPERTY CXX_STANDARD_REQUIRED ON)
8585
set_property(TARGET trantor PROPERTY CXX_EXTENSIONS OFF)

0 commit comments

Comments
 (0)