diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/protocols/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6c882b7..e639ceb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -36,12 +36,11 @@ add_executable(fastd socket.c tuntap.c ${BISON_fastd_config_parse_OUTPUTS} - ${PROTOCOL_SOURCES} ) set_property(TARGET fastd PROPERTY COMPILE_FLAGS "${FASTD_CFLAGS}") set_property(TARGET fastd PROPERTY LINK_FLAGS "-pthread ${UECC_LDFLAGS_OTHER} ${NACL_LDFLAGS_OTHER}") target_include_directories(fastd PRIVATE ${CAP_INCLUDE_DIR} ${NACL_INCLUDE_DIRS}) -target_link_libraries(fastd methods ciphers macs ${RT_LIBRARY} ${CAP_LIBRARY} ${UECC_LIBRARIES} ${NACL_LIBRARIES}) +target_link_libraries(fastd protocols methods ciphers macs ${RT_LIBRARY} ${CAP_LIBRARY} ${UECC_LIBRARIES} ${NACL_LIBRARIES}) add_dependencies(fastd version) diff --git a/src/protocols/CMakeLists.txt b/src/protocols/CMakeLists.txt index 60bfa8e..a5be3f7 100644 --- a/src/protocols/CMakeLists.txt +++ b/src/protocols/CMakeLists.txt @@ -7,4 +7,4 @@ foreach(protocol ${PROTOCOLS}) list(APPEND PROTOCOL_SOURCES $<TARGET_OBJECTS:protocol_${protocol}>) endforeach(protocol) -set(PROTOCOL_SOURCES "${PROTOCOL_SOURCES}" PARENT_SCOPE) +add_library(protocols STATIC ${PROTOCOL_SOURCES}) |