Skip to content

Commit c532691

Browse files
committed
CMake: show Win32 and Generator_platform option values
Ensure key CMake option values are part of the CMake output to facilitae user support when tool updates impact the wider CMake actions, particularly ongoing 'improvements' in Visual Studio. These CMake displays perform the same function as the build-options.txt provided in the main Git for Windows. Cmake is already chatty. Signed-off-by: Philip Oakley <[email protected]>
1 parent d4f678b commit c532691

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contrib/buildsystems/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ cmake_minimum_required(VERSION 3.14)
5858
set(CMAKE_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/../..)
5959
if(WIN32)
6060
set(VCPKG_DIR "${CMAKE_SOURCE_DIR}/compat/vcbuild/vcpkg")
61+
message("WIN32: ${WIN32}")
62+
message("VCPKG_DIR: ${VCPKG_DIR}")
63+
message("MSVC: ${MSVC}")
64+
message("CMAKE_GENERATOR: ${CMAKE_GENERATOR}")
65+
message("CMAKE_CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}")
66+
message("CMAKE_GENERATOR_PLATFORM: ${CMAKE_GENERATOR_PLATFORM}")
6167
if(MSVC AND NOT EXISTS ${VCPKG_DIR})
6268
message("Initializing vcpkg and building the Git's dependencies (this will take a while...)")
6369
execute_process(COMMAND ${CMAKE_SOURCE_DIR}/compat/vcbuild/vcpkg_install.bat ${VCPKG_ARCH})

0 commit comments

Comments
 (0)