diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-20 14:27:17 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-20 14:27:17 +0000 |
commit | 5bb9ff1ee56d2b5e75e01a7f066d8b0cec84ec02 (patch) | |
tree | 66e860a5099bcad013f1cf667255dc372a7c11b3 /sci-libs/symengine/files | |
parent | 7218e1b46bceac05841e90472501742d905fb3fc (diff) |
gentoo resync : 20.03.2021
Diffstat (limited to 'sci-libs/symengine/files')
-rw-r--r-- | sci-libs/symengine/files/symengine-0.7.0-cmake-build-type.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sci-libs/symengine/files/symengine-0.7.0-cmake-build-type.patch b/sci-libs/symengine/files/symengine-0.7.0-cmake-build-type.patch new file mode 100644 index 000000000000..f490521f5c92 --- /dev/null +++ b/sci-libs/symengine/files/symengine-0.7.0-cmake-build-type.patch @@ -0,0 +1,25 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index cf1d213..3067481 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -17,11 +17,6 @@ if (NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE Release + CACHE STRING "Build type (Debug, Release)" FORCE) + endif () +-if (NOT (CMAKE_BUILD_TYPE STREQUAL "Debug" OR +- CMAKE_BUILD_TYPE STREQUAL "Release")) +- message("${CMAKE_BUILD_TYPE}") +- message(FATAL_ERROR "CMAKE_BUILD_TYPE must be one of: Debug, Release (current value: '${CMAKE_BUILD_TYPE}')") +-endif () + + set(BUILD_FOR_DISTRIBUTION no + CACHE BOOL "Building SymEngine for a distribution") +@@ -138,7 +133,7 @@ endif() + try_compile(HAVE_SYMENGINE_STD_TO_STRING "${CMAKE_CURRENT_BINARY_DIR}/cxx" "${CMAKE_CURRENT_SOURCE_DIR}/cmake/checkstdtostring.cpp" + CMAKE_FLAGS "-DCOMPILE_DEFINITIONS=${CMAKE_CXX_FLAGS}") + +-if ((CMAKE_CXX_COMPILER_ID MATCHES Clang) AND (CMAKE_BUILD_TYPE STREQUAL "Release")) ++if ((CMAKE_CXX_COMPILER_ID MATCHES Clang) AND (NOT(CMAKE_BUILD_TYPE STREQUAL "Debug"))) + try_compile(CHECK_CLANG "${CMAKE_CURRENT_BINARY_DIR}/cxx" "${CMAKE_CURRENT_SOURCE_DIR}/cmake/checkclang.cpp") + if (NOT ${CHECK_CLANG}) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__extern_always_inline=inline" ) |