cmake: Set default compile flags for nss_utils
authorAndreas Schneider <asn@samba.org>
Wed, 25 Jan 2023 11:38:01 +0000 (12:38 +0100)
committerAndreas Schneider <asn@samba.org>
Wed, 25 Jan 2023 11:38:01 +0000 (12:38 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
src/CMakeLists.txt

index f56aad5bd204b3e860de2707efcee1fe839befaa..a92019175695fe34a0172b7e7718a876e01c07a8 100644 (file)
@@ -1,6 +1,10 @@
 project(libnss_wrapper C)
 
 add_library(nss_utils STATIC nss_utils.c)
+target_compile_options(nss_utils
+                       PRIVATE
+                          ${DEFAULT_C_COMPILE_FLAGS})
+
 add_library(nss_wrapper SHARED nss_wrapper.c)
 target_compile_options(nss_wrapper
                        PRIVATE