diff --git a/scripts/cmake/ProjectSetup.cmake b/scripts/cmake/ProjectSetup.cmake index 1fe5b6f3490bc62ea5a504f2ed8e1133cee7b974..197a1de8439f33618c8f4d9cb1e9acfef7ae1bbb 100644 --- a/scripts/cmake/ProjectSetup.cmake +++ b/scripts/cmake/ProjectSetup.cmake @@ -1,3 +1,10 @@ +# Check requirements / supported configurations +if(MSVC AND NOT HAVE_64_BIT AND NOT OGS_32_BIT) + message(FATAL_ERROR "Building OGS on Windows with 32-bit is not supported! \ +Either use the correct generator, e.g. 'Visual Studio 14 2015 Win64' or define \ +'-DOGS_32_BIT=ON' if you know what you are doing.") +endif() + # Set build directories set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)