summaryrefslogtreecommitdiff
path: root/app-office/scribus/files/scribus-1.5.8-cmake.patch
blob: 6ddd76912dbebe5806ffb16d1dde3cbb50b96b9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -362,25 +362,6 @@
 if(APPLE)
 	### Include our Apple configure commands
 	include(CMakeLists_Apple.cmake)
-else()
-	if(${CMAKE_GENERATOR} MATCHES "^(Visual Studio|NMake).*")
-		# Windows build with Visual Studio
-		# Surely there's a better way to identify the compiler?
-		set(CMAKE_CXX_FLAGS_DEBUG)
-		set(CMAKE_C_FLAGS_DEBUG)
-	else()
-		# vanilla gcc
-		set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g -Wall -fstrict-aliasing")
-		set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -g -Wall -fstrict-aliasing")
-	endif()
-	if(${CMAKE_GENERATOR} MATCHES "^(Visual Studio|NMake).*")
-		set(CMAKE_CXX_FLAGS_RELEASE)
-		set(CMAKE_C_FLAGS_RELEASE)
-	else()
-		set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -Wall")
-		set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2 -Wall")
-	#	add_definitions(-DNDEBUG)
-	endif()
 endif()
 if(WIN32)
 	add_definitions(-DWIN32_LEAN_AND_MEAN