Skip to content

Commit

Permalink
Moved KDMacTouchBar git pull requirement to macOS builds only.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuperino committed Aug 5, 2022
1 parent 64c945b commit f2e1384
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit f2e1384

Please sign in to comment.