summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2017-11-11 23:10:08 +0100
committerSander Vrijders <[email protected]>2017-11-13 13:37:55 +0100
commit5d3904c4d0593ddb5fcffad320150622ad67f27e (patch)
tree25aa627ff8f2b993c7a19275e0f56f2558ac52bb /src/lib
parentaf3d6479ddbfe995b0ae8bb1488e8756e32c2905 (diff)
downloadouroboros-5d3904c4d0593ddb5fcffad320150622ad67f27e.tar.gz
ouroboros-5d3904c4d0593ddb5fcffad320150622ad67f27e.zip
build: Avoid duplicate definitions in libraries
There were sources defined in multiple libraries. This issue was reported by the address sanitizer on FreeBSD. Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
index 3531ac27..5617977b 100644
--- a/src/lib/CMakeLists.txt
+++ b/src/lib/CMakeLists.txt
@@ -213,11 +213,9 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/config.h.in"
add_library(ouroboros-common SHARED ${SOURCE_FILES_COMMON} ${IRM_PROTO_SRCS}
${IPCP_PROTO_SRCS} ${DIF_CONFIG_PROTO_SRCS})
-add_library(ouroboros-dev SHARED ${SOURCE_FILES_DEV} ${IRM_PROTO_SRCS}
- ${IPCP_PROTO_SRCS} ${DIF_CONFIG_PROTO_SRCS} ${CACEP_PROTO_SRCS})
+add_library(ouroboros-dev SHARED ${SOURCE_FILES_DEV} ${CACEP_PROTO_SRCS})
-add_library(ouroboros-irm SHARED ${SOURCE_FILES_IRM} ${IRM_PROTO_SRCS}
- ${IPCP_PROTO_SRCS} ${DIF_CONFIG_PROTO_SRCS})
+add_library(ouroboros-irm SHARED ${SOURCE_FILES_IRM})
include(AddCompileFlags)
if (CMAKE_BUILD_TYPE MATCHES Debug)