diff --git a/chiapos-2.0.6/cpp/CMakeLists.txt b/chiapos-2.0.6/cpp/CMakeLists.txt index adf2fb1bd..78dd9d3ef 100644 --- a/chiapos-2.0.6/cpp/CMakeLists.txt +++ b/chiapos-2.0.6/cpp/CMakeLists.txt @@ -153,9 +153,6 @@ include_directories( ${BLAKE3_INCLUDE_DIR} ) -add_library(uint128 STATIC ${CMAKE_CURRENT_SOURCE_DIR}/uint128_t/uint128_t.cpp) -target_include_directories(uint128 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/uint128_t) - option(BUILD_PROOF_OF_SPACE_STATICALLY "Build ProofOfSpace target statically" OFF) IF (BUILD_PROOF_OF_SPACE_STATICALLY) message("Statically build ProofOfSpace") @@ -167,7 +164,7 @@ IF (BUILD_STATIC_CHIAPOS_LIBRARY) message("Build chiapos static library (verify-only)") add_library(chiapos_static STATIC src/chacha8.c c-bindings/wrapper.cpp) target_link_libraries(chiapos_static PUBLIC blake3) - target_include_directories(chiapos_static PUBLIC lib/include) + target_include_directories(chiapos_static PUBLIC lib/include uint128_t) ENDIF() FetchContent_Declare( @@ -197,6 +194,9 @@ endif() find_package(Threads REQUIRED) +add_library(uint128 STATIC uint128_t/uint128_t.cpp) +target_include_directories(uint128 PUBLIC uint128_t) + target_compile_features(fse PUBLIC cxx_std_17) target_compile_features(chiapos PUBLIC cxx_std_17) if (WIN32)