Commit a1ed1df 1 parent 799a818 commit a1ed1df Copy full SHA for a1ed1df
File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 44
44
)
45
45
endif ()
46
46
47
- set (CMAKE_CXX_FLAGS "-std=c++1z " )
47
+ set (CMAKE_CXX_FLAGS "-std=c++17 " )
48
48
49
49
# CMake 3.14+
50
50
include (FetchContent)
@@ -66,8 +66,13 @@ add_executable(verifier_test
66
66
${CMAKE_CURRENT_SOURCE_DIR} /refcode/lzcnt.c
67
67
)
68
68
69
- target_link_libraries (chiavdf PRIVATE ${GMP_LIBRARIES} ${GMPXX_LIBRARIES} -pthread)
70
- target_link_libraries (verifier_test ${GMP_LIBRARIES} ${GMPXX_LIBRARIES} -pthread)
69
+ target_link_libraries (chiavdf PRIVATE ${GMP_LIBRARIES} ${GMPXX_LIBRARIES} )
70
+ target_link_libraries (verifier_test PRIVATE ${GMP_LIBRARIES} ${GMPXX_LIBRARIES} )
71
+
72
+ if (UNIX )
73
+ target_link_libraries (chiavdf PRIVATE -pthread)
74
+ target_link_libraries (verifier_test PRIVATE -pthread)
75
+ endif ()
71
76
72
77
if (BUILD_CHIAVDFC)
73
78
add_library (chiavdfc_shared SHARED
You can’t perform that action at this time.
0 commit comments