1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

CMake: Windows: Fix architecture detection for projects using add_subdirectory(JUCE...

This commit is contained in:
attila 2024-10-25 12:41:54 +02:00
parent 2d6bb5ba0e
commit ed80adb3c7

View file

@ -80,10 +80,13 @@ if((CMAKE_SYSTEM_NAME STREQUAL "Windows")
OR (CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "AMD64"
AND NOT (JUCE_TARGET_ARCHITECTURE STREQUAL "i386"
OR JUCE_TARGET_ARCHITECTURE STREQUAL "x86_64")))
set(JUCE_WINDOWS_HELPERS_CAN_RUN FALSE)
set(windows_helpers_can_run FALSE)
else()
set(JUCE_WINDOWS_HELPERS_CAN_RUN TRUE)
set(windows_helpers_can_run TRUE)
endif()
set(JUCE_WINDOWS_HELPERS_CAN_RUN ${windows_helpers_can_run}
CACHE INTERNAL "Signals whether plugin related helper utilities can run on the build machine")
endif()
endif()