diff --git a/CMakeLists.txt b/CMakeLists.txt index e1b1911..a1ee634 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)