From 9b61def87e4b39c932f494c20130175fdc3803ab Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 6 Dec 2023 21:49:25 +0000 Subject: [PATCH] move tomlpp to a dep --- .gitmodules | 5 +---- hyprpm/CMakeLists.txt | 2 ++ hyprpm/subprojects/tomlpp | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) delete mode 160000 hyprpm/subprojects/tomlpp diff --git a/.gitmodules b/.gitmodules index cdb427c7..aa8aa987 100644 --- a/.gitmodules +++ b/.gitmodules @@ -9,7 +9,4 @@ url = https://github.com/canihavesomecoffee/udis86 [submodule "subprojects/tracy"] path = subprojects/tracy - url = https://github.com/wolfpld/tracy -[submodule "hyprpm/subprojects/tomlpp"] - path = hyprpm/subprojects/tomlpp - url = https://github.com/marzer/tomlplusplus + url = https://github.com/wolfpld/tracy \ No newline at end of file diff --git a/hyprpm/CMakeLists.txt b/hyprpm/CMakeLists.txt index 038a38a7..976977fa 100644 --- a/hyprpm/CMakeLists.txt +++ b/hyprpm/CMakeLists.txt @@ -9,5 +9,7 @@ file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp") set(CMAKE_CXX_STANDARD 23) +pkg_check_modules(deps REQUIRED IMPORTED_TARGET tomlplusplus) + add_executable(hyprpm ${SRCFILES}) target_include_directories(hyprpm PUBLIC "." "subprojects/tomlpp/include") diff --git a/hyprpm/subprojects/tomlpp b/hyprpm/subprojects/tomlpp deleted file mode 160000 index d8fa9a1f..00000000 --- a/hyprpm/subprojects/tomlpp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d8fa9a1fddc90254cac2366dde23f0b613bc1280