At least when compiling with VS2019, I just had to remove the guarding check, and the forced math library inclusion.. and it worked.
|
if (UNIX) |
|
add_executable(paramgrill ${PROGRAMS_DIR}/benchfn.c ${PROGRAMS_DIR}/benchzstd.c ${PROGRAMS_DIR}/datagen.c ${PROGRAMS_DIR}/util.c ${PROGRAMS_DIR}/timefn.c ${TESTS_DIR}/paramgrill.c) |
|
target_link_libraries(paramgrill libzstd_static m) #m is math library |
|
endif () |
At least when compiling with VS2019, I just had to remove the guarding check, and the forced math library inclusion.. and it worked.
zstd/build/cmake/tests/CMakeLists.txt
Lines 103 to 106 in d116f24