]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Allow paramgrill in cmake on windows 2413/head
authorsenhuang42 <senhuang96@fb.com>
Thu, 3 Dec 2020 15:39:16 +0000 (10:39 -0500)
committersenhuang42 <senhuang96@fb.com>
Thu, 3 Dec 2020 15:39:16 +0000 (10:39 -0500)
build/cmake/tests/CMakeLists.txt

index 95d60f5f3efa350d940315f059a41564afde3bf7..a66040ec47453eb637aa701db6ed7dc7403a62bb 100644 (file)
@@ -100,7 +100,9 @@ endif()
 # Label the "Medium" set of tests (see TESTING.md)
 set_property(TEST fuzzer zstreamtest playTests APPEND PROPERTY LABELS Medium)
 
+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)
 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
+else()
+    target_link_libraries(paramgrill libzstd_static)
 endif ()