SHA256
1
0
forked from pool/apfel
apfel/apfel-dont-set-default-reltype.patch
Atri Bhattacharya 7579445922 Accepting request 1128096 from home:badshah400:branches:science
* Update to version 3.1.0.
* Add apfel-fix-project-version.patch -- Use the correct version in defining project in CMakeLists.txt
* Add apfel-dont-set-default-reltype.patch -- Don't assume 'RELEASE' as the release type, this should be set at the cmake command line.
* Build static lib and install it as part of a -devel-static package; upstream cmake does not allow disabling static libs and it ends up everywhere in the cmake files, so cannot just ignore it either.
* Use cmake for build in keeping with upstream; BuildRequires: cmake >= 3.15.
* Add BuildRequires: swig needed to generate python wrappings.

OBS-URL: https://build.opensuse.org/request/show/1128096
OBS-URL: https://build.opensuse.org/package/show/science/apfel?expand=0&rev=36
2023-11-29 10:32:36 +00:00

21 lines
848 B
Diff

Index: apfel-3.1.0/CMakeLists.txt
===================================================================
--- apfel-3.1.0.orig/CMakeLists.txt
+++ apfel-3.1.0/CMakeLists.txt
@@ -13,7 +13,6 @@ set(PROJECT_VERSION 3.1.0)
SET(APFEL_VERSION_MAJOR 3)
SET(APFEL_VERSION_MINOR 1)
SET(APFEL_VERSION_PATCH 0)
-set(CMAKE_VERBOSE_MAKEFILE OFF)
include("GNUInstallDirs")
option(APFEL_ENABLE_PYTHON "Enables building of python bindings" ON)
@@ -21,7 +20,6 @@ option(APFEL_ENABLE_TESTS "Enables
option(APFEL_ENABLE_LHAPDF "Enables LHAPDF" ON)
option(APFEL_DOWNLOAD_PDFS "Download LHAPDF sets" ON)
-set(CMAKE_BUILD_TYPE Release)
# Flags for GNU compilers ==============================================
add_compile_options("$<$<COMPILE_LANG_AND_ID:CXX,GNU>:-Wall>")
add_compile_options("$<$<COMPILE_LANG_AND_ID:CXX,GNU>:-Wextra>")