Files
haikuports/dev-cpp/cppdap/patches/cppdap-1.58.0.patchset
Jerome Duval d1cf939885 cppdap: new recipe
dependency for cmake
2024-02-09 14:30:10 +01:00

25 lines
787 B
Plaintext

From ddf570d8f6fb2bc6f7b5f9246de6eefa8af2efce Mon Sep 17 00:00:00 2001
From: Julien Schueller <schueller@phimeca.com>
Date: Thu, 13 Jul 2023 19:36:52 +0200
Subject: CMake: Allow to build dynamic lib
This allows taking cmake BUILD_SHARED_LIBS option to decide whether to build a shared or static lib
This does not change the default (static)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 717f02e..3a14f59 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -226,7 +226,7 @@ endfunction(cppdap_set_target_options)
###########################################################
# dap
-add_library(cppdap STATIC ${CPPDAP_LIST})
+add_library(cppdap ${CPPDAP_LIST})
set_target_properties(cppdap PROPERTIES POSITION_INDEPENDENT_CODE 1)
cppdap_set_target_options(cppdap)
--
2.42.1