Skip to content
Snippets Groups Projects
Commit 2b3653aa authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

contrib: fix restinio build with cmake < 3.8.0

Fix debian 9 + ubuntu 16.04 pipelines

Change-Id: I103cf010f53195ef9f951979b98c8c716396040b
parent d2102f32
No related branches found
No related tags found
No related merge requests found
dev/restinio/CMakeLists.txt | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/dev/restinio/CMakeLists.txt b/dev/restinio/CMakeLists.txt
index df2ecdf..e5f5489 100644
--- a/dev/restinio/CMakeLists.txt
+++ b/dev/restinio/CMakeLists.txt
@@ -10,11 +10,9 @@ add_library(${RESTINIO} INTERFACE)
add_library(restinio::restinio ALIAS ${RESTINIO})
IF (${CMAKE_VERSION} VERSION_LESS "3.8.0")
- set_target_properties(${RESTINIO} PROPERTIES
- CXX_STANDARD 14
- CXX_STANDARD_REQUIRED YES
- CXX_EXTENSIONS NO
- )
+ set (CMAKE_CXX_STANDARD 14)
+ set (CMAKE_CXX_STANDARD_REQUIRED on)
+ set (CMAKE_CXX_EXTENSIONS off)
ELSE ()
target_compile_features(${RESTINIO} INTERFACE cxx_std_14)
ENDIF ()
......@@ -33,6 +33,7 @@ $(TARBALLS)/restinio-$(RESTINIO_VERSION).tar.gz:
restinio: restinio-$(RESTINIO_VERSION).tar.gz
$(UNPACK)
$(APPLY) $(SRC)/restinio/cmake.patch
$(UPDATE_AUTOCONFIG) && cd $(UNPACK_DIR)
$(MOVE)
......
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