mirror of
https://github.com/TokTok/c-toxcore
synced 2026-05-26 18:25:22 +00:00
Disable building cracker with MSVC
It uses OpenMP features MSVC doesn't support.
This commit is contained in:
+8
-6
@@ -526,12 +526,14 @@ if (BUILD_MISC_TESTS)
|
||||
other/fun/save-generator.c)
|
||||
target_link_modules(save-generator toxcore misc_tools)
|
||||
|
||||
add_executable(cracker
|
||||
other/fun/cracker.c)
|
||||
target_link_modules(cracker ${LIBSODIUM_LIBRARIES})
|
||||
find_package(OpenMP)
|
||||
if(OpenMP_C_FOUND)
|
||||
target_link_libraries(cracker OpenMP::OpenMP_C)
|
||||
if(NOT MSVC)
|
||||
add_executable(cracker
|
||||
other/fun/cracker.c)
|
||||
target_link_modules(cracker ${LIBSODIUM_LIBRARIES})
|
||||
find_package(OpenMP)
|
||||
if(OpenMP_C_FOUND)
|
||||
target_link_libraries(cracker OpenMP::OpenMP_C)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_executable(afl_toxsave
|
||||
|
||||
Reference in New Issue
Block a user