summaryrefslogtreecommitdiff
path: root/devel/fccf/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2022-05-09 12:20:26 +0200
committerBaptiste Daroussin <bapt@FreeBSD.org>2022-05-09 12:24:35 +0200
commitffb9e31366f33a736803a7d5b5703d09981e6a20 (patch)
tree9c63fb5ba02acc6bad12d7b433732855a1175aa1 /devel/fccf/files/patch-CMakeLists.txt
parentdevel/argparse: new port (diff)
devel/fccf: update to 0.6.0
Unbundle argparse (actually this fixes package building) Unbundle libgmt (also fixes package building)
Diffstat (limited to 'devel/fccf/files/patch-CMakeLists.txt')
-rw-r--r--devel/fccf/files/patch-CMakeLists.txt54
1 files changed, 54 insertions, 0 deletions
diff --git a/devel/fccf/files/patch-CMakeLists.txt b/devel/fccf/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..60a94ebfdcbe
--- /dev/null
+++ b/devel/fccf/files/patch-CMakeLists.txt
@@ -0,0 +1,54 @@
+--- CMakeLists.txt.orig 2022-05-02 12:24:57 UTC
++++ CMakeLists.txt
+@@ -22,29 +22,32 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native"
+ set(CMAKE_CXX_FLAGS_RELEASE "-O3")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
+
+-# ---- Argparse -------------
+
+-set(CMAKE_MODULE_PATH "")
+-set(CMAKE_LIBRARY_ARCHITECTURE "")
++## ---- Argparse -------------
++#
++#set(CMAKE_MODULE_PATH "")
++#set(CMAKE_LIBRARY_ARCHITECTURE "")
++#
++#include(FetchContent)
++#
++#FetchContent_Declare(argparse
++# GIT_REPOSITORY https://github.com/p-ranav/argparse.git
++# GIT_TAG master
++#)
++#FetchContent_MakeAvailable(argparse)
++find_package(argparse)
++find_package(fmt)
+
+-include(FetchContent)
+-
+-FetchContent_Declare(argparse
+- GIT_REPOSITORY https://github.com/p-ranav/argparse.git
+- GIT_TAG master
+-)
+-FetchContent_MakeAvailable(argparse)
+-
+ # ---- Fmt ----------------
++#
++#set(FMT_HEADERS "")
++#
++#FetchContent_Declare(fmt
++# GIT_REPOSITORY https://github.com/fmtlib/fmt.git
++# GIT_TAG master
++#)
++#FetchContent_MakeAvailable(fmt)
+
+-set(FMT_HEADERS "")
+-
+-FetchContent_Declare(fmt
+- GIT_REPOSITORY https://github.com/fmtlib/fmt.git
+- GIT_TAG master
+-)
+-FetchContent_MakeAvailable(fmt)
+-
+ # ---- LLVM ---------------
+
+ find_package(LLVM REQUIRED CONFIG)