mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
websocketpp: Fix clang specific flags in cmake files
Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit f7030891ef062eeb0e9ca01d4a6191b309e6a307) Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
parent
eb8090f27a
commit
c5cf476e8a
@ -0,0 +1,32 @@
|
||||
From 5ccaff351297bca0e254bbfd66e3f03fef9d9c75 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 10 Jan 2020 21:54:39 -0800
|
||||
Subject: [PATCH] Correct clang compiler flags
|
||||
|
||||
Fix misplaced quotes, this was leading to spurious ; in compiler cmdline
|
||||
Remove demanding libc++, clang can link with both libc++ and libstdc++
|
||||
and platforms have their own defaults, user can demand non defaults via
|
||||
adding it to cmake flags
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/zaphoyd/websocketpp/pull/859]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 2d13117..c17354a 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -148,7 +148,7 @@ if (BUILD_TESTS OR BUILD_EXAMPLES)
|
||||
endif()
|
||||
set (WEBSOCKETPP_PLATFORM_TLS_LIBS ssl crypto)
|
||||
set (WEBSOCKETPP_BOOST_LIBS system thread)
|
||||
- set (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++0x -stdlib=libc++") # todo: is libc++ really needed here?
|
||||
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
|
||||
if (NOT APPLE)
|
||||
add_definitions (-DNDEBUG -Wall -Wno-padded) # todo: should we use CMAKE_C_FLAGS for these?
|
||||
endif ()
|
||||
--
|
||||
2.24.1
|
||||
|
||||
@ -14,6 +14,7 @@ SRC_URI = "git://github.com/zaphoyd/websocketpp.git;protocol=https \
|
||||
file://771.patch \
|
||||
file://855.patch \
|
||||
file://857.patch \
|
||||
file://0001-Correct-clang-compiler-flags.patch \
|
||||
"
|
||||
|
||||
EXTRA_OECMAKE = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '-DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON', '', d)} "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user