cmake: Skip find modules on Windows that don't make sense.

CMake is really slow on Windows...
This commit is contained in:
Ryan Pavlik 2022-04-21 17:16:18 -05:00
parent eec020cc96
commit b487b4d753

View file

@ -74,7 +74,6 @@ endif()
# which the config file for a 3.x says it's not compatible with.
find_package(Eigen3 3 REQUIRED)
find_package(Vulkan MODULE)
find_package(EGL MODULE)
find_package(HIDAPI MODULE)
find_package(OpenHMD MODULE)
find_package(
@ -96,11 +95,14 @@ find_package(depthai CONFIG)
find_package(SDL2 CONFIG)
find_package(ZLIB MODULE)
find_package(cJSON MODULE)
find_package(Systemd MODULE)
find_package(OpenGLES MODULE COMPONENTS V3)
find_package(LeapV2 MODULE)
find_package(ONNXRuntime MODULE)
find_package(Percetto MODULE)
if(NOT WIN32)
find_package(EGL MODULE)
find_package(Percetto MODULE)
find_package(Systemd MODULE)
find_package(OpenGLES MODULE COMPONENTS V3)
endif()
if(NOT ANDROID)
find_package(PkgConfig MODULE)
endif()