mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
CMakeLists.txt: fix build without C++
Fix the following build failure without C++ raised since version 4.2.0
and
962e9ee345
:
CMake Error at /nvmedata/autobuild/instance-11/output-1/per-package/libwebsockets/host/share/cmake-3.18/Modules/CMakeTestCXXCompiler.cmake:59 (message):
The C++ compiler
"/usr/bin/clang++"
is not able to compile a simple test program.
Fixes:
- http://autobuild.buildroot.org/results/550e7f7d54adf74f8cc078be5b91b3567d622ede
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
parent
8eb6cbf5ac
commit
fe762e586d
1 changed files with 4 additions and 1 deletions
|
@ -63,7 +63,10 @@ if (ESP_PLATFORM)
|
|||
endif()
|
||||
|
||||
# it's at this point any toolchain file is brought in
|
||||
project(libwebsockets C CXX)
|
||||
project(libwebsockets C)
|
||||
if (LWS_WITH_SECURE_STREAMS_CPP)
|
||||
enable_language(CXX)
|
||||
endif()
|
||||
include(CTest)
|
||||
|
||||
if (ESP_PLATFORM)
|
||||
|
|
Loading…
Add table
Reference in a new issue