celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnol...@apache.org
Subject [14/50] [abbrv] celix git commit: CELIX-279: added error message in case broken CMake Version is used
Date Tue, 03 Nov 2015 15:09:40 GMT
CELIX-279: added error message in case broken CMake Version is used


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/9550e630
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/9550e630
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/9550e630

Branch: refs/heads/master
Commit: 9550e630abd11c4b06ae76335a3c9c1f6403ce4b
Parents: 4023f36
Author: Bjoern Petri <bpetri@apache.org>
Authored: Sat Oct 24 09:02:10 2015 +0200
Committer: Bjoern Petri <bpetri@apache.org>
Committed: Sat Oct 24 09:02:10 2015 +0200

----------------------------------------------------------------------
 CMakeLists.txt | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/9550e630/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dccee8d..78f5c1c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,6 +28,12 @@ set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
 set(CMAKE_INSTALL_NAME_DIR "@rpath")
 
 SET(CMAKE_BUILD_TYPE "Debug")
+
+# see https://public.kitware.com/Bug/view.php?id=15696
+IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} EQUAL 3.3)
+	message( FATAL_ERROR "Building Celix using CMake 3.3 is not supported due to a bug in the
Makefile Generator (see Bug 15696). Please change the used CMake version - both, CMake 3.2
and CMake 3.4 are working fine." )
+ENDIF()
+
 IF(UNIX)
 	SET(CMAKE_C_FLAGS "-D_GNU_SOURCE -std=gnu99 -Wall -pthread ${CMAKE_C_FLAGS}")
     set(CMAKE_EXE_LINKER_FLAGS "-pthread ${CMAKE_EXE_LINKER_FLAGS}")


Mime
View raw message