Skip to content

Commit

Permalink
CMakeLists.txt: fix build without C++
Browse files Browse the repository at this point in the history
lwrb is written in c, so only enforce a c compiler

Seen while compiling fluent-bit on buildroot.

Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
  • Loading branch information
ThomasDevoogdt committed Apr 24, 2023
1 parent dc40db6 commit 4a4f44c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.22)

# Setup project
project(LwLibPROJECT)
project(LwLibPROJECT C)

if(NOT PROJECT_IS_TOP_LEVEL)
add_subdirectory(lwrb)
Expand Down Expand Up @@ -37,4 +37,4 @@ else()
# Add subdir with lwrb and link to project
add_subdirectory(lwrb)
target_link_libraries(${PROJECT_NAME} lwrb)
endif()
endif()

0 comments on commit 4a4f44c

Please sign in to comment.