[libxml2] cmake: Build static library with -DLIBXML_STATIC
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] cmake: Build static library with -DLIBXML_STATIC
- Date: Tue, 18 Oct 2022 18:27:26 +0000 (UTC)
commit 530938b4870192d51fd0f01e564c12acc0f7acac
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Tue Oct 18 18:56:56 2022 +0200
cmake: Build static library with -DLIBXML_STATIC
Fix scope of target_compile_definitions command.
Fixes #425.
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c3dba6c6..ccb22540 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -326,7 +326,7 @@ add_library(LibXml2::LibXml2 ALIAS LibXml2)
target_compile_definitions(LibXml2 PRIVATE SYSCONFDIR="${CMAKE_INSTALL_FULL_SYSCONFDIR}")
if(NOT BUILD_SHARED_LIBS)
- target_compile_definitions(LibXml2 INTERFACE LIBXML_STATIC)
+ target_compile_definitions(LibXml2 PUBLIC LIBXML_STATIC)
set(XML_CFLAGS "-DLIBXML_STATIC")
endif()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]