Skip to content
Snippets Groups Projects
Commit a31bcba8 authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] 3.9 + DE works in VS but nowhere else.

parent c0198a96
No related branches found
No related tags found
No related merge requests found
......@@ -68,8 +68,10 @@ if(OGS_BUILD_GUI)
add_definitions(-DOGS_BUILD_GUI)
# TODO: Remove when this is fixed in CMake, maybe in 3.10
# https://gitlab.kitware.com/cmake/cmake/issues/17205
if(${CMAKE_VERSION} VERSION_GREATER 3.8.2)
message(FATAL_ERROR "OGS_BUILD_GUI is not supported with CMake 3.9.x. Please downgrade CMake to 3.8.x!")
if(${CMAKE_VERSION} VERSION_GREATER 3.8.2 AND
NOT CMAKE_GENERATOR MATCHES "Visual Studio")
message(FATAL_ERROR "OGS_BUILD_GUI is not supported with CMake 3.9.x! "
"Please downgrade CMake to 3.8.x!")
endif()
endif()
option(OGS_BUILD_UTILS "Should the utilities programms be built?" OFF)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment