Skip to content

Commit

Permalink
build: FetchContent_GetProperties and FetchContent_Populate is replac…
Browse files Browse the repository at this point in the history
…e by FetchContent_MakeAvailable
  • Loading branch information
henryborchers committed Dec 11, 2024
1 parent f7b8513 commit ec4428a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ if (BUILD_TESTING)
SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/sample_images
)
FetchContent_GetProperties(test_images)
if (NOT test_images_POPULATED)
FetchContent_Populate(test_images)
endif()

FetchContent_MakeAvailable(test_images)
find_path(TEST_IMAGE_PATH dummy.jp2
PATHS ${test_images_SOURCE_DIR})
set(TEST_IMAGE_PATH ${TEST_IMAGE_PATH}/)
Expand Down

0 comments on commit ec4428a

Please sign in to comment.