Fix check for git submodules
This commit is contained in:
parent
204aeb8a9a
commit
34d1955bd1
1 changed files with 8 additions and 8 deletions
|
@ -1,15 +1,15 @@
|
||||||
cmake_minimum_required(VERSION 3.0)
|
cmake_minimum_required(VERSION 3.0)
|
||||||
project(Triangles LANGUAGES CXX VERSION 1.0)
|
project(Triangles LANGUAGES CXX VERSION 1.0)
|
||||||
|
|
||||||
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/imgui)
|
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/imgui/imgui.h)
|
||||||
message(FATAL_ERROR "third_party/imgui is missing!\nPlease update the \
|
message(FATAL_ERROR "third_party/imgui/imgui.h is missing!\n \
|
||||||
GameDevTools submodule by running 'git submodule init' and 'git submodule \
|
Please update the GameDevTools submodule by running 'git submodule init' and \
|
||||||
update'!")
|
'git submodule update'!")
|
||||||
endif()
|
endif()
|
||||||
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/imgui-sfml)
|
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/imgui-sfml/imgui-SFML.h)
|
||||||
message(FATAL_ERROR "third_party/imgui-sfml is missing!\nPlease update the \
|
message(FATAL_ERROR "third_party/imgui-sfml/imgui-SFML.h is missing!\n \
|
||||||
GameDevTools submodule by running 'git submodule init' and 'git submodule \
|
Please update the GameDevTools submodule by running 'git submodule init' and \
|
||||||
update'!")
|
'git submodule update'!")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(ImGuiDemo "")
|
set(ImGuiDemo "")
|
||||||
|
|
Loading…
Reference in a new issue