diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-09-04 01:49:41 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-09-04 01:49:41 +0200 |
commit | 1e60c768210d16c0f4b47cf6298dab2073df3515 (patch) | |
tree | 152e213974fc05997978f4987f7c9e2d706ea921 /CMakeLists.txt | |
parent | 13a663781501b25bd23f2db503bb42217d2cffc8 (diff) | |
download | libxml2-1e60c768210d16c0f4b47cf6298dab2073df3515.tar.gz |
Remove HAVE_WIN32_THREADS configuration flag
Check for LIBXML_THREAD_ENABLED and _WIN32 instead.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 861234da..07457bd3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -372,9 +372,7 @@ endif() if(LIBXML2_WITH_THREADS) target_compile_definitions(LibXml2 PRIVATE _REENTRANT) - if(WIN32) - target_compile_definitions(LibXml2 PRIVATE HAVE_WIN32_THREADS) - else() + if(NOT WIN32) check_include_files(pthread.h HAVE_PTHREAD_H) endif() endif() @@ -524,9 +522,6 @@ if(LIBXML2_WITH_TESTS) endforeach() if(Threads_FOUND) foreach(TEST runtest testThreads) - if(WIN32) - target_compile_definitions(${TEST} PRIVATE HAVE_WIN32_THREADS) - endif() target_link_libraries(${TEST} Threads::Threads) endforeach() endif() |