1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Juceaide: Only suppress compiler environment variables when cross compiling

This commit is contained in:
reuk 2022-01-05 18:13:33 +00:00
parent e730962921
commit aaf68f58f5
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -53,9 +53,11 @@ else()
# environment variables, which is unfortunate because we really don't want to cross-compile
# juceaide. If you really want to set the compilers for juceaide, pass the appropriate
# CMAKE_<lang>_COMPILER flags when configuring CMake.
unset(ENV{ASM})
unset(ENV{CC})
unset(ENV{CXX})
if((CMAKE_SYSTEM_NAME STREQUAL "Android") OR (CMAKE_SYSTEM_NAME STREQUAL "iOS"))
unset(ENV{ASM})
unset(ENV{CC})
unset(ENV{CXX})
endif()
message(STATUS "Configuring juceaide")