Actions: possible fix for the cmake build error C/CXX issue on GH actions

This commit is contained in:
Lion Kortlepel
2021-08-09 12:20:40 +02:00
committed by Lion
parent 530e977d9d
commit cee824ad46

View File

@@ -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.")