Skip to content

Commit e369adc

Browse files
committed
Fixing removal of external dependencies from install
1 parent 3baac9d commit e369adc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmake/dependencies.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,10 @@ get_directory_property(KNOWN_SUBDIRECTORIES SUBDIRECTORIES)
146146
foreach(dir ${KNOWN_SUBDIRECTORIES})
147147
if (IS_DIRECTORY ${dir})
148148
foreach(dep ${DECLARED_DEPENDENCIES})
149-
if (DEFINED ${dep}_SOURCE_DIR)
149+
string(TOLOWER ${dep} ldep)
150+
if (DEFINED ${ldep}_SOURCE_DIR)
150151
#check if the subdirectory is "under" the dependency source dir
151-
string(FIND ${dir} ${${dep}_SOURCE_DIR} match_pos)
152+
string(FIND ${dir} ${${ldep}_SOURCE_DIR} match_pos)
152153
if (match_pos EQUAL 0)
153154
#and, if so, exclude it from all to prevent installation
154155
set_property(DIRECTORY ${dir} PROPERTY EXCLUDE_FROM_ALL YES)

0 commit comments

Comments
 (0)