From 6d360ac640a59706484cc0fc830b1e95717ff1cb Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Sun, 3 Oct 2021 14:43:15 +0200 Subject: [PATCH] CMakeLists.txt: Default to USEUDEV=OFF in windows builds. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 66b379a..267a712 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,11 @@ project(openFPGALoader VERSION "0.5.0" LANGUAGES CXX) add_definitions(-DVERSION=\"v${PROJECT_VERSION}\") option(BUILD_STATIC "Whether or not to build with static libraries" OFF) -option(ENABLE_UDEV "use udev to search JTAG adapter from /dev/xx" ON) +if (${CMAKE_SYSTEM_NAME} MATCHES "Windows") + set(ENABLE_UDEV OFF) +else() + option(ENABLE_UDEV "use udev to search JTAG adapter from /dev/xx" ON) +endif() option(ENABLE_CMSISDAP "enable cmsis DAP interface (requires hidapi)" ON) option(USE_PKGCONFIG "Use pkgconfig to find libraries" ON) option(LINK_CMAKE_THREADS "Use CMake find_package to link the threading library" OFF)