From 34d1955bd12bbef02e8672a954cee3c4b3b67884 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 22 Jul 2020 15:02:38 +0900 Subject: [PATCH] Fix check for git submodules --- CMakeLists.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f7b7e1..e3b81cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,15 +1,15 @@ cmake_minimum_required(VERSION 3.0) project(Triangles LANGUAGES CXX VERSION 1.0) -if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/imgui) - message(FATAL_ERROR "third_party/imgui is missing!\nPlease update the \ -GameDevTools submodule by running 'git submodule init' and 'git submodule \ -update'!") +if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/imgui/imgui.h) + message(FATAL_ERROR "third_party/imgui/imgui.h is missing!\n \ +Please update the GameDevTools submodule by running 'git submodule init' and \ +'git submodule update'!") endif() -if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/imgui-sfml) - message(FATAL_ERROR "third_party/imgui-sfml is missing!\nPlease update the \ -GameDevTools submodule by running 'git submodule init' and 'git submodule \ -update'!") +if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/imgui-sfml/imgui-SFML.h) + message(FATAL_ERROR "third_party/imgui-sfml/imgui-SFML.h is missing!\n \ +Please update the GameDevTools submodule by running 'git submodule init' and \ +'git submodule update'!") endif() set(ImGuiDemo "")