From 255d11b6534e94b69348e0dca3ab5fd2c7368b6e Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Mon, 11 Sep 2017 08:50:44 +0200 Subject: [PATCH] [Appveyor] Temporarily disable Gui build. Add error message when trying to build Gui with CMake 3.9.x. --- .appveyor.yml | 4 ++-- CMakeLists.txt | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 87c03e88c29..3c56f8397e7 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -43,8 +43,8 @@ before_build: build_script: - mkdir build & cd build - - conan install .. -o gui=True - - cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=%configuration% -DBUILD_SHARED_LIBS=OFF -DOGS_EIGEN_DYNAMIC_SHAPE_MATRICES=ON -DOGS_USE_PCH=OFF -DOGS_BUILD_GUI=ON + - conan install .. # -o gui=True + - cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=%configuration% -DBUILD_SHARED_LIBS=OFF -DOGS_EIGEN_DYNAMIC_SHAPE_MATRICES=ON -DOGS_USE_PCH=OFF # -DOGS_BUILD_GUI=ON - cmake --build . --config %configuration% test_script: diff --git a/CMakeLists.txt b/CMakeLists.txt index 1158fdb69ce..2cc4f72209b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,6 +62,11 @@ option(OGS_BUILD_CLI "Should the OGS simulator be built?" ON) option(OGS_BUILD_GUI "Should the Data Explorer be built?" OFF) 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_EQUAL 3.9.0) + 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) -- GitLab