summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2021-07-01 14:06:06 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2021-12-24 12:52:14 +0100
commit1ffbd264d6368f6fc4582ed7f3181c4fc0bc2829 (patch)
treed8374c4adb166fd88cd732d2906d958ca4f03071 /test
parent022307ba77a13e7057bd6f256683ad531fd3b5d5 (diff)
Include win directory in pigz even if not using threads.
Diffstat (limited to 'test')
-rw-r--r--test/pigz/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/pigz/CMakeLists.txt b/test/pigz/CMakeLists.txt
index 6038e6c..43082cf 100644
--- a/test/pigz/CMakeLists.txt
+++ b/test/pigz/CMakeLists.txt
@@ -6,6 +6,9 @@
# By default pigz will be linked against the system zlib and
# pthread libraries if installed.
+# For compilation on Windows download and use shim:
+# https://github.com/zlib-ng/pigzbench/tree/master/pigz/win
+
# Optional Variables
# WITH_CODE_COVERAGE - Enable code coverage reporting
# WITH_THREADS - Enable threading support
@@ -69,6 +72,9 @@ set(PIGZ_HDRS
add_executable(${PROJECT_NAME} ${PIGZ_SRCS} ${PIGZ_HDRS})
add_definitions(-DNOZOPFLI)
+if(WIN32)
+ target_include_directories(${PROJECT_NAME} PRIVATE win)
+endif()
# Find and link against pthreads or pthreads4w
if(WITH_THREADS)
@@ -79,7 +85,7 @@ if(WITH_THREADS)
add_subdirectory(${PTHREADS4W_ROOT} ${PTHREADS4W_ROOT} EXCLUDE_FROM_ALL)
target_link_libraries(${PROJECT_NAME} pthreadVC3)
- target_include_directories(${PROJECT_NAME} PRIVATE win ${PTHREADS4W_ROOT})
+ target_include_directories(${PROJECT_NAME} PRIVATE ${PTHREADS4W_ROOT})
else()
message(WARNING "Missing pthreads4w root directory")
set(WITH_THREADS OFF)