Skip to content

Commit

Permalink
CMakeLists.txt: fix build without C++
Browse files Browse the repository at this point in the history
Fix the following build failure without C++:

CMake Error at CMakeLists.txt:3 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

Fixes:
 - http://autobuild.buildroot.org/results/17e2d6e6d6ddf7845a37a8bbf733faf40d9faa61

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine committed Aug 7, 2022
1 parent d2cd3d3 commit 059f674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.10)

project(mbw VERSION 1.5)
project(mbw VERSION 1.5 LANGUAGES C)

add_executable(mbw mbw.c)
install(TARGETS mbw DESTINATION bin)

0 comments on commit 059f674

Please sign in to comment.