Skip to content
Snippets Groups Projects
Commit bbe81fd0 authored by Natanael Copa's avatar Natanael Copa
Browse files

community/slop: fix build with icu 76

ICU 76 requires c++17.

ref: https://github.com/naelstrof/slop/issues/176
parent f0526cb1
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,9 @@ makedepends=" ...@@ -22,7 +22,9 @@ makedepends="
samurai samurai
" "
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/naelstrof/slop/archive/v$pkgver.tar.gz" source="$pkgname-$pkgver.tar.gz::https://github.com/naelstrof/slop/archive/v$pkgver.tar.gz
c++17.patch
"
options="!check" # No tests options="!check" # No tests
build() { build() {
...@@ -44,4 +46,5 @@ package() { ...@@ -44,4 +46,5 @@ package() {
sha512sums=" sha512sums="
d1abc50cad124cfb11e9b57c38c824efb2ece3dffce8e54e451ce4adc4a7ad441c6171b7df5d1c8dfa66c875a12cf07b206ba3b87229c0e5f2ddf744d7922fc3 slop-7.6.tar.gz d1abc50cad124cfb11e9b57c38c824efb2ece3dffce8e54e451ce4adc4a7ad441c6171b7df5d1c8dfa66c875a12cf07b206ba3b87229c0e5f2ddf744d7922fc3 slop-7.6.tar.gz
3bf997855e27f9726935d30d3cac6aa54c532691ac8965148bc2659ed429266ebd88de076495843ca2d927160c771ebbc4e791b2783e551e3d7419ee3f96cd74 c++17.patch
" "
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e5dac0a..33c927b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,7 +59,7 @@ set_property(TARGET ${LIBRARY_NAME} PROPERTY CXX_EXTENSIONS OFF)
add_executable(${EXECUTABLE_NAME} src/main.cpp)
set_property(TARGET ${EXECUTABLE_NAME} PROPERTY CXX_STANDARD_REQUIRED ON)
-set_property(TARGET ${EXECUTABLE_NAME} PROPERTY CXX_STANDARD 11)
+set_property(TARGET ${EXECUTABLE_NAME} PROPERTY CXX_STANDARD 17)
set_property(TARGET ${EXECUTABLE_NAME} PROPERTY CXX_EXTENSIONS OFF)
set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/modules" )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment