From afa06f4446a5e52c732b5b77ea0dbb0549e7899d Mon Sep 17 00:00:00 2001 From: Rob Taylor Date: Wed, 20 Sep 2023 18:05:21 +0100 Subject: [PATCH] Make lemon a submodule, and don't install it --- .gitmodules | 4 ++-- meson.build | 3 ++- subprojects/{lemon-1.3.1 => lemon} | 0 3 files changed, 4 insertions(+), 3 deletions(-) rename subprojects/{lemon-1.3.1 => lemon} (100%) diff --git a/.gitmodules b/.gitmodules index a7eeee5..7a887ec 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "thirdparty/pybind11/pybind11"] path = thirdparty/pybind11/pybind11 url = https://github.com/pybind/pybind11.git -[submodule "subprojects/lemon-1.3.1"] - path = subprojects/lemon-1.3.1 +[submodule "subprojects/lemon"] + path = subprojects/lemon url = https://github.com/Coloquinte/lemon diff --git a/meson.build b/meson.build index da1d331..818bd50 100644 --- a/meson.build +++ b/meson.build @@ -15,7 +15,8 @@ thread_dep = dependency('threads', required: true) cmake =import('cmake') cmake_opts = cmake.subproject_options() cmake_opts.add_cmake_defines({'CMAKE_POSITION_INDEPENDENT_CODE': true}) -lemon = cmake.subproject('lemon-1.3.1', options: cmake_opts) +cmake_opts.set_install(false) +lemon = cmake.subproject('lemon', options: cmake_opts) lemon_dep = lemon.dependency('lemon') sources = [ diff --git a/subprojects/lemon-1.3.1 b/subprojects/lemon similarity index 100% rename from subprojects/lemon-1.3.1 rename to subprojects/lemon