@@ -244,6 +244,19 @@ if(DEFINED ENV{MIXXX_VCPKG_ROOT} AND NOT DEFINED MIXXX_VCPKG_ROOT)
244244endif ()
245245
246246if (DEFINED MIXXX_VCPKG_ROOT)
247+ # Validate MIXXX_VCPKG_ROOT points to a vcpkg root to avoid confusing follow-up errors.
248+ set (_vcpkg_toolchain "${MIXXX_VCPKG_ROOT} /scripts/buildsystems/vcpkg.cmake" )
249+ if (NOT EXISTS "${_vcpkg_toolchain} " )
250+ file (TO_NATIVE_PATH "${_vcpkg_toolchain} " _vcpkg_toolchain_native )
251+ message (
252+ STATUS
253+ "MIXXX_VCPKG_ROOT was set to \" ${MIXXX_VCPKG_ROOT} \" , but this is not a valid vcpkg root.\n "
254+ "Expected to find: ${_vcpkg_toolchain_native} \n "
255+ "Please set MIXXX_VCPKG_ROOT to the vcpkg root directory, the folder containing the vcpkg tool (vcpkg.exe on Windows)."
256+ )
257+ fatal_error_missing_env ()
258+ endif ()
259+
247260 if (
248261 EXISTS "${MIXXX_VCPKG_ROOT} /overlay/ports"
249262 OR NOT EXISTS "${MIXXX_VCPKG_ROOT} /ports"
@@ -620,7 +633,7 @@ if(MSVC)
620633 # Microsoft Visual Studio Compiler
621634 add_compile_options (/UTF8 )
622635 if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(x64|x86_64|AMD64)$" )
623- # Target architecture is x64 -> x64 has alsways SSE and SSE2 instruction sets
636+ # Target architecture is x64 -> x64 has always SSE and SSE2 instruction sets
624637 message (STATUS "x64 Enabling SSE2 CPU optimizations (>= Pentium 4)" )
625638 # Define gcc/clang style defines for SSE and SSE2 for compatibility
626639 add_compile_definitions ("__SSE__" "__SSE2__" )
@@ -3123,6 +3136,20 @@ if(ENGINEPRIME)
31233136 "${CMAKE_PREFIX_PATH } "
31243137 )
31253138
3139+ # Apple Clang >= 16 enabled -Wdeprecated-literal-operator by default and
3140+ # treats it as an error, which breaks the libdjinterop build because the
3141+ # library uses the deprecated whitespace syntax (operator"" _suffix).
3142+ # GCC does not have this warning at all and rejects unknown -Wno-error=
3143+ # flags, so we only pass the suppression flag on Apple Clang.
3144+ set (DJINTEROP_EXTRA_CMAKE_ARGS "" )
3145+ if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" )
3146+ list (
3147+ APPEND
3148+ DJINTEROP_EXTRA_CMAKE_ARGS
3149+ -DCMAKE_CXX_FLAGS=-Wno-error=deprecated-literal-operator
3150+ )
3151+ endif ()
3152+
31263153 # For offline builds download the archive file from the URL and
31273154 # copy it into DOWNLOAD_DIR under DOWNLOAD_NAME prior to starting
31283155 # the configuration.
@@ -3157,7 +3184,7 @@ if(ENGINEPRIME)
31573184 -$<IF :$<BOOL :${CMAKE_OSX_ARCHITECTURES} >,D ,U >CMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}
31583185 -DCMAKE_SYSTEM_PROCESSOR=${CMAKE_SYSTEM_PROCESSOR }
31593186 -DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME }
3160- -DSYSTEM_SQLITE=${DJINTEROP_SYSTEM_SQLITE}
3187+ -DSYSTEM_SQLITE=${DJINTEROP_SYSTEM_SQLITE} ${DJINTEROP_EXTRA_CMAKE_ARGS}
31613188 BUILD_COMMAND ${CMAKE_COMMAND } --build . --target DjInterop
31623189 BUILD_BYPRODUCTS <INSTALL_DIR >/${DJINTEROP_LIBRARY}
31633190 EXCLUDE_FROM_ALL TRUE
@@ -5126,7 +5153,7 @@ if(NOT CPACK_DEBIAN_PACKAGE_RELEASE)
51265153 set (CPACK_DEBIAN_PACKAGE_RELEASE 1)
51275154endif ()
51285155
5129- set (CPACK_DEBIAN_DISTRIBUTION_RELEASES noble questing resolute)
5156+ set (CPACK_DEBIAN_DISTRIBUTION_RELEASES noble questing resolute stonking )
51305157set (CPACK_DEBIAN_SOURCE_DIR ${CMAKE_SOURCE_DIR } )
51315158set (
51325159 CPACK_DEBIAN_UPLOAD_PPA_SCRIPT
0 commit comments