summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2015-04-25 22:57:17 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2015-04-25 22:57:17 +0000
commitf5bf727e37e554bbe04ff38af8622282bb7b16ac (patch)
tree425343a897684e8348c707a4a12cc1d11bd86dc1 /CMake
parent5f3f1c8bc6737b11ad3e484505126773b576d309 (diff)
[CMake] Add option to suppress CMake regeneration (STR #3215).
This option is marked as advanced and only available with CMake >= 3.0. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10721 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'CMake')
-rw-r--r--CMake/options.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake
index 0f58fe6b2..1444ae154 100644
--- a/CMake/options.cmake
+++ b/CMake/options.cmake
@@ -319,3 +319,10 @@ else()
set(FLTK_XDBE_FOUND FALSE)
endif(OPTION_USE_XDBE AND HAVE_XDBE_H)
+#######################################################################
+# prior to CMake 3.0 this feature was buggy
+if(NOT CMAKE_VERSION VERSION_LESS 3.0.0)
+ option(CMAKE_SUPPRESS_REGENERATION
+ "suppress rules to re-run CMake on rebuild" OFF)
+ mark_as_advanced(CMAKE_SUPPRESS_REGENERATION)
+endif(NOT CMAKE_VERSION VERSION_LESS 3.0.0)