Skip to content

Commit 00ef1e7

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 5862296 commit 00ef1e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contrib/buildsystems/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ endif()
6767

6868
if(USE_VCPKG)
6969
set(VCPKG_DIR "${CMAKE_SOURCE_DIR}/compat/vcbuild/vcpkg")
70+
message("WIN32: ${WIN32}") # show its underlying text values
71+
message("VCPKG_DIR: ${VCPKG_DIR}")
72+
message("VCPKG_ARCH: ${VCPKG_ARCH}") # maybe unset
73+
message("MSVC: ${MSVC}")
74+
message("CMAKE_GENERATOR: ${CMAKE_GENERATOR}")
75+
message("CMAKE_CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}")
76+
message("CMAKE_GENERATOR_PLATFORM: ${CMAKE_GENERATOR_PLATFORM}")
7077
if(NOT EXISTS ${VCPKG_DIR})
7178
message("Initializing vcpkg and building the Git's dependencies (this will take a while...)")
7279
execute_process(COMMAND ${CMAKE_SOURCE_DIR}/compat/vcbuild/vcpkg_install.bat ${VCPKG_ARCH})

0 commit comments

Comments
 (0)