From cee824ad4688ab74fae52d053665037be39b41eb Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Mon, 9 Aug 2021 12:20:40 +0200 Subject: [PATCH] Actions: possible fix for the cmake build error C/CXX issue on GH actions --- CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b894745..315e2c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,4 @@ cmake_minimum_required(VERSION 3.0) -project(BeamMP-Server - DESCRIPTION "Server for BeamMP - The Multiplayer Mod for BeamNG.drive" - HOMEPAGE_URL https://beammp.com - LANGUAGES CXX) message(STATUS "You can find build instructions and a list of dependencies in the README at \ https://github.com/BeamMP/BeamMP-Server") @@ -20,6 +16,13 @@ set(CURL_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/include/curl/include) add_subdirectory("include/sentry-native") + +# ---- start of CXX section ----- +project(BeamMP-Server + DESCRIPTION "Server for BeamMP - The Multiplayer Mod for BeamNG.drive" + HOMEPAGE_URL https://beammp.com + LANGUAGES CXX) + message(STATUS "Setting compiler flags") if (WIN32) message(STATUS "MSVC -> forcing use of statically-linked runtime.")