[osmium-tool] 90/97: CMake workaround: Set CMAKE_CONFIGURATION_TYPES before project().
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Tue Jul 21 20:15:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to tag v1.0.0
in repository osmium-tool.
commit 9bd1dca3c6d2664494881cd5f7a8713b7e095bee
Author: Jochen Topf <jochen at topf.org>
Date: Wed Feb 11 22:25:08 2015 +0100
CMake workaround: Set CMAKE_CONFIGURATION_TYPES before project().
As per http://www.cmake.org/pipermail/cmake/2012-January/048856.html
---
CMakeLists.txt | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8b0cdc..f502399 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,6 +16,11 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
#
#-----------------------------------------------------------------------------
+set(CMAKE_CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo;MinSizeRel;Dev"
+ CACHE STRING
+ "List of available configuration types"
+ FORCE)
+
project(osmium)
set(OSMIUM_VERSION_MAJOR 0)
@@ -157,7 +162,6 @@ endif()
# Build Type
#
#-----------------------------------------------------------------------------
-set(CMAKE_CONFIGURATION_TYPES "Debug Release RelWithDebInfo MinSizeRel Dev")
# In 'Dev' mode: compile with very strict warnings and turn them into errors.
if(CMAKE_BUILD_TYPE STREQUAL "Dev")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osmium-tool.git
More information about the Pkg-grass-devel
mailing list