Merge pull request #18773 from traceon/xcode-env-var-avoid-ninja

Check if XCODE_IDE is true and avoid enforcing ninja in that case
This commit is contained in:
alexey-milovidov 2021-01-06 05:30:10 +03:00 committed by GitHub
commit 8818a56b00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@
# https://youtrack.jetbrains.com/issue/CPP-2659
# https://youtrack.jetbrains.com/issue/CPP-870
if (NOT DEFINED ENV{CLION_IDE})
if (NOT DEFINED ENV{CLION_IDE} AND NOT DEFINED ENV{XCODE_IDE})
find_program(NINJA_PATH ninja)
if (NINJA_PATH)
set(CMAKE_GENERATOR "Ninja" CACHE INTERNAL "" FORCE)