diff --git a/CMakeLists.txt b/CMakeLists.txt index 626ba34a6..afa7fdeff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ include(cmake/CFlags.cmake) # Dependencies ### find_package(LibUSB REQUIRED) -if (NOT APPLE AND NOT WIN32) +if (NOT APPLE AND NOT WIN32 AND NOT CMAKE_CROSSCOMPILING) find_package(PkgConfig) pkg_check_modules(gtk gtk+-3.0) endif ()