scribus: don't overwrite cmake-build-type

This commit is contained in:
Đoàn Trần Công Danh 2021-03-27 19:17:13 +07:00
parent 8743de20d1
commit 43c06778ff

View file

@ -0,0 +1,33 @@
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -35,11 +35,6 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
#RPATH setup - more below too
-if (WANT_NORPATH OR WANT_DISTROBUILD)
- set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
-else()
- set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
-endif()
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_SKIP_RULE_DEPENDENCY TRUE)
set(CMAKE_SKIP_BUILD_RPATH TRUE)
@@ -309,16 +304,6 @@ include (CMakeLists_Directories.cmake)
#Convert our simpler command line option to the CMake style
#None, Debug, Release, .. or custom ones
# set(WANT_DEBUG ON)
-if(WANT_DEBUG)
- set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Set Debug Build Type" FORCE)
-endif()
-if (WANT_RELEASEWITHDEBUG)
- set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Set Release with Debug Info Build Type" FORCE)
-endif()
-if(NOT WANT_DEBUG AND NOT WANT_RELEASEWITHDEBUG)
- set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Set Release Build Type" FORCE)
-endif()
-
#Based on our build type, setup our build options