From dd9e5bc31219e971cf8206fb6289ebf579c2245f Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 22 Jul 2021 22:43:31 -0400 Subject: [PATCH] CMake: exclude libm/librt on win32 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9aab6a259..685b28a99 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,7 +83,7 @@ set_package_properties(Threads PROPERTIES TYPE REQUIRED) find_package(ZLIB) set_package_properties(ZLIB PROPERTIES TYPE REQUIRED) # platform-specific logics -if(NOT MSYS AND NOT APPLE) +if(NOT MSYS AND NOT WIN32 AND NOT APPLE) find_library(LIBM m REQUIRED) find_library(LIBRT rt REQUIRED) endif()