aboutsummaryrefslogtreecommitdiffstats
path: root/devel/fccf/files/patch-CMakeLists.txt
blob: dc107e0cff9990d4facbfbde0ab130a241c130a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
--- CMakeLists.txt.orig	2022-05-02 12:24:57 UTC
+++ CMakeLists.txt
@@ -20,31 +20,33 @@ endif()
 
 set(CMAKE_CXX_FLAGS_DEBUG "-g")
 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)
@@ -90,7 +92,7 @@ find_package(Threads REQUIRED)
 ## Append flags to enable exceptions and optimization
 set(CMAKE_CXX_FLAGS_DEBUG "-g")
 set(CMAKE_CXX_FLAGS_RELEASE "-O3")
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -std=c++17 -fexceptions")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -fexceptions")
 
 # ---- Declare library ----