Skip to content

Commit d5391db

Browse files
committed
break out MSVC into its own branch, dump all context vars, explicitly fail
1 parent bdb989f commit d5391db

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,16 @@ function(bundle_static_library name deps)
162162
COMMENT "Bundling ${name}"
163163
VERBATIM
164164
)
165+
166+
elseif (CMAKE_C_COMPILER_ID MATCHES "^MSVC$")
167+
message(STATUS "Dumping all CMAKE variables...")
168+
get_cmake_property(_variableNames VARIABLES)
169+
list (SORT _variableNames)
170+
foreach (_variableName ${_variableNames})
171+
message(STATUS "${_variableName}=${${_variableName}}")
172+
endforeach()
173+
174+
message(FATAL_ERROR "Don't know how to proceed with compiler ${CMAKE_C_COMPILER_ID}!")
165175
else()
166176
message(FATAL_ERROR "Unknown bundling for C compiler ${CMAKE_C_COMPILER_ID}!")
167177
endif()

0 commit comments

Comments
 (0)