public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in games-strategy/freesynd/files: freesynd-0.7.1-cmake.patch
@ 2013-04-13 20:16 Julian Ospald (hasufell)
  0 siblings, 0 replies; only message in thread
From: Julian Ospald (hasufell) @ 2013-04-13 20:16 UTC (permalink / raw
  To: gentoo-commits

hasufell    13/04/13 20:16:18

  Added:                freesynd-0.7.1-cmake.patch
  Log:
  version bump
  
  (Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)

Revision  Changes    Path
1.1                  games-strategy/freesynd/files/freesynd-0.7.1-cmake.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freesynd/files/freesynd-0.7.1-cmake.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freesynd/files/freesynd-0.7.1-cmake.patch?rev=1.1&content-type=text/plain

Index: freesynd-0.7.1-cmake.patch
===================================================================
--- freesynd-0.7.1/CMakeLists.txt
+++ freesynd-0.7.1/CMakeLists.txt
@@ -34,6 +34,13 @@
 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_C_FLAGS}")
 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXX_FLAGS}")
 
+option(BUILD_DEV_TOOLS "Build development tools")
+option(WITH_DEBUG "Enable debug definitions")
+
+if(WITH_DEBUG)
+	add_definitions (-D_DEBUG)
+endif()
+
 # Set standard definitions for all platforms.
 add_definitions (-DSYSTEM_SDL)
 add_definitions (-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\")
@@ -59,10 +66,7 @@
 	message (FATAL_ERROR "Unable to locate PNG")
 endif ()
 
-if (NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "debug")
-	set (BUILD_DEV_TOOLS TRUE)
-else ()
-	set (BUILD_DEV_TOOLS FALSE)
+if (CMAKE_BUILD_TYPE AND NOT CMAKE_BUILD_TYPE STREQUAL "debug")
 	# We only define an install target if we're doing a release build.
 	# Furthermore, on Mac, the data folder is a part of the app bundle.
 	if (NOT APPLE)





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-13 20:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-13 20:16 [gentoo-commits] gentoo-x86 commit in games-strategy/freesynd/files: freesynd-0.7.1-cmake.patch Julian Ospald (hasufell)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox