Skip to content

Commit

Permalink
[fbb042b] cmake: make sure to expose <dep>_SOURCE_DIR to the parent…
Browse files Browse the repository at this point in the history
… scope

(cherry picked from commit 5a724b9)
  • Loading branch information
lmichaelis committed Nov 17, 2022
1 parent 21d59b8 commit 6bc9967
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ function(px_add_dependency NAME URL URL_HASH)
FetchContent_Populate(${NAME})
add_subdirectory(${${NAME}_SOURCE_DIR} ${${NAME}_BINARY_DIR})
endif ()

set(${NAME}_SOURCE_DIR ${${NAME}_SOURCE_DIR} PARENT_SCOPE)
endif ()
endfunction()

Expand Down

0 comments on commit 6bc9967

Please sign in to comment.