Make shlib_loader OBJECT library to prevent multiple compilations

Including sources in targets makes that file being compiled multiple
times. Instead, define an OBJECT library (i.e., it is only compiled, but
not linked), and link it into each target that uses it.
This commit is contained in:
Robert Schmidt
2023-07-07 08:35:28 +02:00
parent 28ec4944a5
commit 387f5e4118
2 changed files with 23 additions and 47 deletions
-2
View File
@@ -102,8 +102,6 @@ find_package(Threads REQUIRED)
set (FIRMWARE_VERSION "No svn information")
add_definitions("-DFIRMWARE_VERSION=\"${FIRMWARE_VERSION}\"")
add_boolean_option(LINUX True "????")
##########################
# NAS LAYER OPTIONS
##########################