Fail client experimental lib building at compile-time if there are undefined symbols on Linux
This commit is contained in:
1 file changed
+6
@@ -667,6 +667,12 @@ add_library(pm3rrg_rdv4 SHARED
|
||||
|
||||
target_compile_definitions(pm3rrg_rdv4 PRIVATE LIBPM3)
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
# Fail the build if a client source file is missing from TARGET_SOURCES.
|
||||
# Otherwise Linux may defer unresolved shared-library symbols until import.
|
||||
set_property(TARGET pm3rrg_rdv4 APPEND_STRING PROPERTY LINK_FLAGS " -Wl,--no-undefined")
|
||||
endif()
|
||||
|
||||
target_compile_options(pm3rrg_rdv4 PUBLIC -Wall -Werror -O3)
|
||||
if (EMBED_READLINE)
|
||||
if (NOT SKIPREADLINE EQUAL 1)
|
||||
|
||||
Reference in new issue
Block a user