mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 11:10:06 -05:00
MSVC: Fix CMAKE_CL_64 in CXX-only projects (#13896)
When CXX is enabled without C then MSVC_CXX_ARCHITECTURE_ID is set instead but not MSVC_C_ARCHITECTURE_ID. Test both.
This commit is contained in:
@@ -107,7 +107,7 @@ if(NOT MSVC_VERSION)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC_C_ARCHITECTURE_ID MATCHES 64)
|
if(MSVC_C_ARCHITECTURE_ID MATCHES 64 OR MSVC_CXX_ARCHITECTURE_ID MATCHES 64)
|
||||||
set(CMAKE_CL_64 1)
|
set(CMAKE_CL_64 1)
|
||||||
else()
|
else()
|
||||||
set(CMAKE_CL_64 0)
|
set(CMAKE_CL_64 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user