mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 05:10:29 -04:00
- remove -march=native as per policy. - convert PORTVERSION to DISTVERSION - depend on LLVM using USES=llvm - ensure that the correct LLVM is linked against
65 lines
1.6 KiB
Text
65 lines
1.6 KiB
Text
--- 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 ----
|
|
|