Lines 1-17
Link Here
|
1 |
--- CMakeLists.txt.orig 2021-05-28 02:40:44 UTC |
1 |
--- CMakeLists.txt.orig 2021-10-28 19:29:17 UTC |
2 |
+++ CMakeLists.txt |
2 |
+++ CMakeLists.txt |
3 |
@@ -14,29 +14,7 @@ endif() |
3 |
@@ -14,33 +14,7 @@ endif() |
4 |
project(chiapos C CXX ASM) |
4 |
project(chiapos C CXX ASM) |
5 |
|
5 |
|
6 |
# CMake 3.14+ |
6 |
# CMake 3.14+ |
7 |
-include(FetchContent) |
7 |
-include(FetchContent) |
8 |
|
8 |
|
|
|
9 |
-if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") |
10 |
-include(${CMAKE_INSTALL_PREFIX}/share/cmake/pybind11/pybind11Config.cmake) |
11 |
-else() |
9 |
-FetchContent_Declare( |
12 |
-FetchContent_Declare( |
10 |
- pybind11-src |
13 |
- pybind11-src |
11 |
- GIT_REPOSITORY https://github.com/pybind/pybind11.git |
14 |
- GIT_REPOSITORY https://github.com/pybind/pybind11.git |
12 |
- GIT_TAG v2.6.2 |
15 |
- GIT_TAG v2.7.1 |
13 |
-) |
16 |
-) |
14 |
-FetchContent_MakeAvailable(pybind11-src) |
17 |
-FetchContent_MakeAvailable(pybind11-src) |
|
|
18 |
-endif() |
15 |
- |
19 |
- |
16 |
-FetchContent_Declare( |
20 |
-FetchContent_Declare( |
17 |
- cxxopts |
21 |
- cxxopts |
Lines 30-36
Link Here
|
30 |
set(FSE_LIB ${CMAKE_CURRENT_SOURCE_DIR}/lib/FiniteStateEntropy/lib) |
34 |
set(FSE_LIB ${CMAKE_CURRENT_SOURCE_DIR}/lib/FiniteStateEntropy/lib) |
31 |
set(FSE_FILES |
35 |
set(FSE_FILES |
32 |
${FSE_LIB}/fse_compress.c |
36 |
${FSE_LIB}/fse_compress.c |
33 |
@@ -48,8 +26,8 @@ set(FSE_FILES |
37 |
@@ -52,8 +26,8 @@ set(FSE_FILES |
34 |
include_directories( |
38 |
include_directories( |
35 |
${INCLUDE_DIRECTORIES} |
39 |
${INCLUDE_DIRECTORIES} |
36 |
${CMAKE_CURRENT_SOURCE_DIR}/../lib/include |
40 |
${CMAKE_CURRENT_SOURCE_DIR}/../lib/include |
Lines 41-47
Link Here
|
41 |
${CMAKE_CURRENT_SOURCE_DIR}/../lib/FiniteStateEntropy/lib |
45 |
${CMAKE_CURRENT_SOURCE_DIR}/../lib/FiniteStateEntropy/lib |
42 |
${CMAKE_CURRENT_SOURCE_DIR}/src |
46 |
${CMAKE_CURRENT_SOURCE_DIR}/src |
43 |
${CMAKE_CURRENT_SOURCE_DIR}/test |
47 |
${CMAKE_CURRENT_SOURCE_DIR}/test |
44 |
@@ -130,8 +108,6 @@ set(BLAKE3_SRC |
48 |
@@ -134,8 +108,6 @@ set(BLAKE3_SRC |
45 |
) |
49 |
) |
46 |
ENDIF() |
50 |
ENDIF() |
47 |
|
51 |
|
Lines 50-56
Link Here
|
50 |
add_executable(ProofOfSpace |
54 |
add_executable(ProofOfSpace |
51 |
src/cli.cpp |
55 |
src/cli.cpp |
52 |
src/chacha8.c |
56 |
src/chacha8.c |
53 |
@@ -145,33 +121,30 @@ add_executable(RunTests |
57 |
@@ -155,13 +127,15 @@ add_executable(RunTests |
54 |
${BLAKE3_SRC} |
58 |
${BLAKE3_SRC} |
55 |
) |
59 |
) |
56 |
|
60 |
|
Lines 67-89
Link Here
|
67 |
target_compile_features(RunTests PUBLIC cxx_std_17) |
71 |
target_compile_features(RunTests PUBLIC cxx_std_17) |
68 |
|
72 |
|
69 |
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
73 |
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
70 |
- target_link_libraries(chiapos PRIVATE fse Threads::Threads) |
74 |
@@ -173,7 +147,6 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") |
71 |
target_link_libraries(ProofOfSpace fse Threads::Threads) |
75 |
target_link_libraries(ProofOfSpace fse Threads::Threads) |
72 |
target_link_libraries(RunTests fse Threads::Threads) |
76 |
target_link_libraries(RunTests fse Threads::Threads) |
73 |
elseif (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") |
|
|
74 |
- target_link_libraries(chiapos PRIVATE fse Threads::Threads) |
75 |
target_link_libraries(ProofOfSpace fse Threads::Threads) |
76 |
target_link_libraries(RunTests fse Threads::Threads) |
77 |
elseif (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") |
77 |
elseif (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") |
78 |
- target_link_libraries(chiapos PRIVATE fse Threads::Threads) |
78 |
- target_link_libraries(chiapos PRIVATE fse Threads::Threads) |
79 |
target_link_libraries(ProofOfSpace fse Threads::Threads) |
79 |
target_link_libraries(ProofOfSpace fse Threads::Threads) |
80 |
target_link_libraries(RunTests fse Threads::Threads) |
80 |
target_link_libraries(RunTests fse Threads::Threads) |
81 |
elseif (MSVC) |
81 |
elseif (MSVC) |
82 |
- target_link_libraries(chiapos PRIVATE fse Threads::Threads uint128) |
|
|
83 |
target_link_libraries(ProofOfSpace fse Threads::Threads uint128) |
84 |
target_link_libraries(RunTests fse Threads::Threads uint128) |
85 |
else() |
86 |
- target_link_libraries(chiapos PRIVATE fse stdc++fs Threads::Threads) |
87 |
target_link_libraries(ProofOfSpace fse stdc++fs Threads::Threads) |
88 |
target_link_libraries(RunTests fse stdc++fs Threads::Threads) |
89 |
endif() |