diff --git a/scripts/cmake/CMakeSetup.cmake b/scripts/cmake/CMakeSetup.cmake index 2f7790bd8ad4956dbe31cc6b570df116d43fb6db..c4934c16b57ccb7624976611446ec1aa21d52908 100644 --- a/scripts/cmake/CMakeSetup.cmake +++ b/scripts/cmake/CMakeSetup.cmake @@ -9,6 +9,13 @@ if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}") ) endif() +message(STATUS "Generator: ${CMAKE_GENERATOR}") +if(WIN32 AND (NOT "${CMAKE_GENERATOR}" MATCHES "Visual Studio") + AND "$ENV{CIBUILDWHEEL}" +) + message(FATAL_ERROR "Wheels only build in Visual Studio!") +endif() + set(_collection ${PROJECT_SOURCE_DIR}/ThirdParty/collection) # If submodules in ThirdParty/collection are initialized and this is a Guix # build use submodule as CPM sources.