Skip to content

Commit 993135f

Browse files
committed
Remove block of BLT check logic (redundant with block below)
Also make sure check for whether BLT is loaded is in the right spot when camp is a submodule in a project that is a submodule of another project.
1 parent 9c8b738 commit 993135f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

cmake/load_blt.cmake

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
if (DEFINED BLT_SOURCE_DIR)
2-
# Support having a shared BLT outside of the repository if given a BLT_SOURCE_DIR
3-
if (NOT EXISTS ${BLT_SOURCE_DIR}/SetupBLT.cmake)
4-
message(FATAL_ERROR "Given BLT_SOURCE_DIR does not contain SetupBLT.cmake")
5-
endif()
6-
else()
7-
# Use internal BLT if no BLT_SOURCE_DIR is given
8-
set(BLT_SOURCE_DIR "${PROJECT_SOURCE_DIR}/extern/blt" CACHE PATH "")
9-
if (NOT EXISTS ${BLT_SOURCE_DIR}/SetupBLT.cmake)
10-
message(FATAL_ERROR
11-
"The BLT git submodule is not present. "
12-
"Either run the following two commands in your git repository: \n"
13-
" git submodule init\n"
14-
" git submodule update\n"
15-
"Or add -DBLT_SOURCE_DIR=/path/to/blt to your CMake command." )
16-
endif()
17-
endif()
18-
191
if (NOT BLT_LOADED)
202
if (DEFINED BLT_SOURCE_DIR)
213
if (NOT EXISTS ${BLT_SOURCE_DIR}/SetupBLT.cmake)

0 commit comments

Comments
 (0)