Skip to content

Commit

Permalink
Add Check to CMake warning about out-of-date submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
manpen committed Jul 2, 2019
1 parent 14dd3ca commit ad9b1d8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,12 @@ endif()
################################################################################
# Use TLX as a CMake submodule
if(EXISTS "${PROJECT_SOURCE_DIR}/extlibs/tlx/CMakeLists.txt")
add_subdirectory(extlibs/tlx)
if(EXISTS "${PROJECT_SOURCE_DIR}/extlibs/tlx/tlx/math/power_to_the.hpp")
add_subdirectory(extlibs/tlx)
else()
message(FATAL_ERROR "It seems the TLX submodule is out-of-date"
"Please run `git submodule update` to update the submodule.")
endif()
else()
message(FATAL_ERROR
"Missing TLX library in extlibs/tlx "
Expand Down

0 comments on commit ad9b1d8

Please sign in to comment.