mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-27 19:28:37 -06:00
CMakeDetermineCompilerId: Do not test vendor without a compiler
If no CMAKE_${lang}_COMPILER is available then do not try to run
it to determine the compiler vendor.
This commit is contained in:
@@ -44,7 +44,7 @@ function(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
|
||||
endforeach()
|
||||
|
||||
# If the compiler is still unknown, try to query its vendor.
|
||||
if(NOT CMAKE_${lang}_COMPILER_ID)
|
||||
if(CMAKE_${lang}_COMPILER AND NOT CMAKE_${lang}_COMPILER_ID)
|
||||
CMAKE_DETERMINE_COMPILER_ID_VENDOR(${lang})
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user