From d410a0c850a731f9ba5b8585a1163b9879a79913 Mon Sep 17 00:00:00 2001 From: Lauchmelder Date: Mon, 28 Feb 2022 17:54:14 +0100 Subject: [PATCH 1/2] Update CMakeLists.txt --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bd8caf..e47fc3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,8 @@ cmake_minimum_required (VERSION 3.8) project ("NES Emulator") find_package(glfw3) -if(NOT GLFW3_FOUND) +if(GLFW3_FOUND) +else() add_subdirectory("vendor/glfw") endif() add_subdirectory("vendor/glad") From c282d7cbedacf434ff923a952c769c8c9b1d9ea1 Mon Sep 17 00:00:00 2001 From: Lauchmelder Date: Mon, 28 Feb 2022 18:02:24 +0100 Subject: [PATCH 2/2] final linux i hate linux i lionux --- CMakeLists.txt | 3 +-- src/Application.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e47fc3d..f72251b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,8 +6,7 @@ cmake_minimum_required (VERSION 3.8) project ("NES Emulator") find_package(glfw3) -if(GLFW3_FOUND) -else() +if(NOT glfw3_FOUND) add_subdirectory("vendor/glfw") endif() add_subdirectory("vendor/glad") diff --git a/src/Application.cpp b/src/Application.cpp index 5e46fc3..968f7c4 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -2,7 +2,7 @@ #include #include -#include +#include #include #include