CMake: exclude libm/librt on win32

This commit is contained in:
nick black 2021-07-22 22:43:31 -04:00
parent 03fbf57f24
commit dd9e5bc312
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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()