From 3eed6fa0062a4a3688dca8486545f81d247d740d Mon Sep 17 00:00:00 2001 From: JacksonM8 Date: Thu, 7 Jan 2021 01:23:41 +1030 Subject: [PATCH] Remove relative pathing in target_sources() as per CMP0076 --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index df58846ec..9005a5ec4 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -220,7 +220,7 @@ if(ASSIMP_HUNTER_ENABLED) find_package(GTest CONFIG REQUIRED) target_link_libraries(unit GTest::gtest_main GTest::gmock) else() - target_sources(unit PUBLIC ../contrib/gtest/src/gtest-all.cc) + target_sources(unit PUBLIC ${Assimp_SOURCE_DIR}/contrib/gtest/src/gtest-all.cc) endif() TARGET_USE_COMMON_OUTPUT_DIRECTORY(unit)