Skip to content

Commit

Permalink
Merge pull request #12910 from fwcd/better-no-env-errors
Browse files Browse the repository at this point in the history
CMakeLists: Emit better errors for exotic target platforms
  • Loading branch information
daschuer committed Mar 4, 2024
2 parents 91286b8 + 94b0661 commit e8087ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Expand Up @@ -54,14 +54,18 @@ function(FATAL_ERROR_MISSING_ENV)
else()
message(FATAL_ERROR "Did you download the Mixxx build environment using `${CMAKE_SOURCE_DIR}/tools/windows_release_buildenv.bat` or `${CMAKE_SOURCE_DIR}/tools/windows_buildenv.bat`(includes Debug)?")
endif()
elseif(APPLE)
elseif(APPLE AND NOT IOS)
if(CMAKE_BUILD_TYPE MATCHES "Debug")
message(FATAL_ERROR "Did you download the Mixxx build environment using `${CMAKE_SOURCE_DIR}/tools/macos_buildenv.sh`")
else()
message(FATAL_ERROR "Did you download the Mixxx build environment using `${CMAKE_SOURCE_DIR}/tools/macos_release_buildenv.sh` or `${CMAKE_SOURCE_DIR}/tools/macos_buildenv.sh`(includes Debug)?")
endif()
else()
elseif(LINUX)
message(FATAL_ERROR "Did you install the Debian dev packages via `${CMAKE_SOURCE_DIR}/tools/debian_buildenv.sh` or the equivalent packages using your package manager?")
elseif(DEFINED VCPKG_TARGET_TRIPLET)
message(FATAL_ERROR "You are targeting ${VCPKG_TARGET_TRIPLET}, which does not have a prebuilt environment. Please make sure that -DMIXXX_VCPKG_ROOT points to a vcpkg environment containing installed dependencies for ${VCPKG_TARGET_TRIPLET}!")
else()
message(FATAL_ERROR "You are building for an unknown platform and are missing a build environment. Please set -DVCPKG_TARGET_TRIPLET and make sure that -DMIXXX_VCPKG_ROOT points to a vcpkg environment containing installed dependencies for your target platform!")
endif()
endfunction()

Expand Down

0 comments on commit e8087ee

Please sign in to comment.