diff --git a/CMakeLists.txt b/CMakeLists.txt index 56d44555..48d91210 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,9 +122,6 @@ if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git") endif() endif() endif() -if (NOT EXISTS "${PROJECT_SOURCE_DIR}/3rdparty/KDMacTouchBar/CMakeLists.txt" AND APPLE AND NOT IOS) - message(FATAL_ERROR "KDMacTouchBar was not downloaded. GIT_SUBMODULE was turned off or failed.") -endif() if(ANDROID) @@ -214,6 +211,9 @@ elseif(WIN32 OR APPLE) ) # KDMacTouchBar (Mac only) if(APPLE AND NOT IOS) + if (NOT EXISTS "${PROJECT_SOURCE_DIR}/3rdparty/KDMacTouchBar/CMakeLists.txt") + message(FATAL_ERROR "KDMacTouchBar was not downloaded. GIT_SUBMODULE was turned off or failed.") + endif() add_subdirectory("3rdparty/KDMacTouchBar" build/kdmactouchbar) endif() else()