Skip to content

Commit

Permalink
Use FetchContent for PugiXML
Browse files Browse the repository at this point in the history
  • Loading branch information
nbolton committed Nov 12, 2024
1 parent 3283b50 commit 34b37e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 9 additions & 1 deletion cmake/Libraries.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include(FetchContent)

set(LIBEI_MIN_VERSION 1.2.1)
set(LIBPORTAL_MIN_VERSION 0.6)

Expand Down Expand Up @@ -110,7 +112,13 @@ macro(configure_unix_libs)
configure_xorg_libs()
configure_wayland_libs()

find_package(pugixml REQUIRED)
set(FETCHCONTENT_FULLY_DISCONNECTED ON)
FetchContent_Declare(
pugixml
GIT_REPOSITORY https://github.com/zeux/pugixml.git
GIT_TAG v1.13
)
FetchContent_MakeAvailable(pugixml)

find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
Expand Down
4 changes: 0 additions & 4 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ config:
libgtk-3-dev \
libgtest-dev \
libgmock-dev \
libpugixml-dev \
libei-dev \
libportal-dev
optional: [libei-dev, libportal-dev]
Expand Down Expand Up @@ -80,7 +79,6 @@ config:
gtk3-devel \
gtest-devel \
gmock-devel \
pugixml-devel \
libei-devel \
libportal-devel
optional: [libei-devel, libportal-devel]
Expand Down Expand Up @@ -126,7 +124,6 @@ config:
gtk3-devel \
googletest-devel \
googlemock-devel \
pugixml-devel \
libei-devel \
libportal-devel

Expand All @@ -144,7 +141,6 @@ config:
libnotify \
libxkbfile \
gtest \
pugixml \
libei \
libportal \
qt6-base \
Expand Down

0 comments on commit 34b37e6

Please sign in to comment.