diff options
| author | Nathan Moinvaziri <nathan@nathanm.com> | 2021-07-01 14:06:06 -0700 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2021-09-03 11:21:57 +0200 |
| commit | 96290ad9177865558e47d00576aed82df5197522 (patch) | |
| tree | e0b76bdb9c83e646e9d86686fb9806e86223d118 | |
| parent | 0af8678307ef2ab976454a50ae299281185ba2f5 (diff) | |
| download | Project-Tick-96290ad9177865558e47d00576aed82df5197522.tar.gz Project-Tick-96290ad9177865558e47d00576aed82df5197522.zip | |
Include win directory in pigz even if not using threads.
| -rw-r--r-- | test/pigz/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/pigz/CMakeLists.txt b/test/pigz/CMakeLists.txt index 6038e6cb53..43082cf263 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) |
