Skip to content

Commit 82e50f8

Browse files
authored
Merge pull request #7155 from notimaginative/prebuilt_download_fix
stop download of prebuilt libs when using override
2 parents e05bf3c + 542b3d3 commit 82e50f8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/prebuilt.cmake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ set(PREBUILT_LIB_DIR "${CMAKE_CURRENT_BINARY_DIR}/prebuilt")
66
set(CURRENT_ROOT "${CMAKE_CURRENT_BINARY_DIR}")
77

88
function(get_prebuilt_path OUT_VAR)
9-
if (IS_DIRECTORY "${PREBUILT_LIB_DIR}")
10-
if (NOT "${FSO_PREBUILT_OVERRIDE}" STREQUAL "")
11-
set(${OUT_VAR} "${FSO_PREBUILT_OVERRIDE}" PARENT_SCOPE)
12-
return()
13-
endif()
9+
if (NOT "${FSO_PREBUILT_OVERRIDE}" STREQUAL "" AND IS_DIRECTORY "${FSO_PREBUILT_OVERRIDE}")
10+
set(${OUT_VAR} "${FSO_PREBUILT_OVERRIDE}" PARENT_SCOPE)
11+
return()
12+
endif()
1413

14+
if (IS_DIRECTORY "${PREBUILT_LIB_DIR}")
1515
if ("${DOWNLOADED_PREBUILT_VERSION}" STREQUAL "${PREBUILT_VERSION_NAME}")
1616
# Libraries already downloaded and up-to-date
1717
set(${OUT_VAR} "${PREBUILT_LIB_DIR}" PARENT_SCOPE)

0 commit comments

Comments
 (0)