[Orxonox-commit 3636] r8321 - in code/branches/kicklib2: . cmake

rgrieder at orxonox.net rgrieder at orxonox.net
Sun Apr 24 22:40:00 CEST 2011


Author: rgrieder
Date: 2011-04-24 22:39:59 +0200 (Sun, 24 Apr 2011)
New Revision: 8321

Added:
   code/branches/kicklib2/cmake/InstallCheck.cmake
Modified:
   code/branches/kicklib2/CMakeLists.txt
Log:
Prevent installation of debug builds (not supported).

Modified: code/branches/kicklib2/CMakeLists.txt
===================================================================
--- code/branches/kicklib2/CMakeLists.txt	2011-04-24 04:48:55 UTC (rev 8320)
+++ code/branches/kicklib2/CMakeLists.txt	2011-04-24 20:39:59 UTC (rev 8321)
@@ -98,6 +98,9 @@
   MARK_AS_ADVANCED(CMAKE_BUILD_TYPE)
 ENDIF()
 
+# Debug builds can not be installed
+INSTALL(SCRIPT cmake/InstallCheck.cmake)
+
 # Enable expensive optimisations: use this for a binary release build
 OPTION(ORXONOX_RELEASE "Enable when building restributable releases" FALSE)
 

Added: code/branches/kicklib2/cmake/InstallCheck.cmake
===================================================================
--- code/branches/kicklib2/cmake/InstallCheck.cmake	                        (rev 0)
+++ code/branches/kicklib2/cmake/InstallCheck.cmake	2011-04-24 20:39:59 UTC (rev 8321)
@@ -0,0 +1,30 @@
+ #
+ #             ORXONOX - the hottest 3D action shooter ever to exist
+ #                             > www.orxonox.net <
+ #
+ #        This program is free software; you can redistribute it and/or
+ #         modify it under the terms of the GNU General Public License
+ #        as published by the Free Software Foundation; either version 2
+ #            of the License, or (at your option) any later version.
+ #
+ #       This program is distributed in the hope that it will be useful,
+ #        but WITHOUT ANY WARRANTY; without even the implied warranty of
+ #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ #                 GNU General Public License for more details.
+ #
+ #   You should have received a copy of the GNU General Public License along
+ #      with this program; if not, write to the Free Software Foundation,
+ #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ #
+ #
+ #  Author:
+ #    Reto Grieder
+ #  Description:
+ #    Prevents user from installing debug builds.
+ #  Note:
+ #    This script is executed at install time, not CMake time!
+ #
+
+IF("${CMAKE_INSTALL_CONFIG_NAME}" STREQUAL "Debug")
+  MESSAGE(FATAL_ERROR "Installing debug builds is not supported!")
+ENDIF()


Property changes on: code/branches/kicklib2/cmake/InstallCheck.cmake
___________________________________________________________________
Added: svn:eol-style
   + native




More information about the Orxonox-commit mailing list