michal-narajowski closed pull request #210: cmake: Add CXX to project languages URL: https://github.com/apache/mynewt-newt/pull/210
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/newt/builder/cmake.go b/newt/builder/cmake.go index 31bebc2f..b1f6da79 100644 --- a/newt/builder/cmake.go +++ b/newt/builder/cmake.go @@ -312,7 +312,7 @@ func CmakeCompilerWrite(w io.Writer, c *toolchain.Compiler) { func CmakeHeaderWrite(w io.Writer, c *toolchain.Compiler, targetName string) { fmt.Fprintln(w, "cmake_minimum_required(VERSION 3.7)\n") CmakeCompilerWrite(w, c) - fmt.Fprintf(w, "project(%s VERSION 0.0.0 LANGUAGES C ASM)\n\n", targetName) + fmt.Fprintf(w, "project(%s VERSION 0.0.0 LANGUAGES C CXX ASM)\n\n", targetName) fmt.Fprintln(w, "SET(CMAKE_C_FLAGS_BACKUP \"${CMAKE_C_FLAGS}\")") fmt.Fprintln(w, "SET(CMAKE_CXX_FLAGS_BACKUP \"${CMAKE_CXX_FLAGS}\")") fmt.Fprintln(w, "SET(CMAKE_ASM_FLAGS_BACKUP \"${CMAKE_ASM_FLAGS}\")") ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services