From 5184e532f5c5cd5b6fba52baf5279f3efce08488 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Sat, 11 Jun 2022 23:00:10 +0200 Subject: set clang++ and fix build issue --- CMakeLists.txt | 2 ++ src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9429c52..0ba14f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ project(shooter) find_package(raylib 3.0 REQUIRED) # Requires at least version 3.0 set (CMAKE_CXX_STANDARD 17) +set (CMAKE_CXX_COMPILER /usr/lib64/ccache/clang++) add_executable(${PROJECT_NAME} src/yabs_core.cpp @@ -20,6 +21,7 @@ target_compile_options(${PROJECT_NAME} PRIVATE "-O3" PRIVATE "-march=native" PRIVATE "-Wall" + PRIVATE "-glldb" ) # Checks if OSX and links appropriate frameworks (only required on MacOS) diff --git a/src/main.cpp b/src/main.cpp index 491e1c5..94e3f97 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -30,7 +30,7 @@ int main(void) { UnloadImage(checked); // create model with image as texture - Model model = {0}; + Model model = {}; model = LoadModelFromMesh(GenMeshCube(1.0f, 1.0f, 1.0f)); model.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; -- cgit v1.2.3