From 53ff805ef65e449c5f8ba46340518ba6b8dae21d Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Sun, 23 Oct 2022 02:25:43 -0700 Subject: [PATCH 1/2] Fix -Werror being set in releases --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 361b1b3..0ae1d9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,10 @@ set(PROJECT_NAME dynamic-graph-tutorial) set(PROJECT_DESCRIPTION "Tutorial for dynamic-graph") set(PROJECT_URL "https://github.com/${PROJECT_ORG}/${PROJECT_NAME}") +if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") + set(CXX_DISABLE_WERROR ON) +endif() + # Project options option(BUILD_PYTHON_INTERFACE "Build the python bindings" ON) option(INSTALL_PYTHON_INTERFACE_ONLY "Install *ONLY* the python bindings" OFF) From 7d19770890508f68a7b0e5de18359c86b6e8d197 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Sun, 23 Oct 2022 02:27:17 -0700 Subject: [PATCH 2/2] Remove -Werror --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ae1d9a..8b6d024 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ set(PROJECT_NAME dynamic-graph-tutorial) set(PROJECT_DESCRIPTION "Tutorial for dynamic-graph") set(PROJECT_URL "https://github.com/${PROJECT_ORG}/${PROJECT_NAME}") -if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") +if(NOT "${CMAKE_BUILD_TYPE}" MATCHES "Debug") set(CXX_DISABLE_WERROR ON) endif()