Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2020-09-15 17:00:15 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-09-17 13:29:19 +0300
commitf9fcb25d521d11b425e1071a95ed342d9ddbef97 (patch)
treee3c2a12097b774d607a3bd61c4f3c1ecd3a26cba /build_files/cmake/Modules
parent0700c045bc7fb2ec996e04a60eed24f338559924 (diff)
CMake: clean up setting of platform specific linker flags
Set flags directly on the target, and use common function for all cases. This refactoring helps with the next commit for test executables. Ref D8714
Diffstat (limited to 'build_files/cmake/Modules')
-rw-r--r--build_files/cmake/Modules/GTestTesting.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/build_files/cmake/Modules/GTestTesting.cmake b/build_files/cmake/Modules/GTestTesting.cmake
index 053d5196f41..2e45f253a9a 100644
--- a/build_files/cmake/Modules/GTestTesting.cmake
+++ b/build_files/cmake/Modules/GTestTesting.cmake
@@ -39,6 +39,7 @@ macro(BLENDER_SRC_GTEST_EX)
add_definitions(${GLOG_DEFINES})
add_executable(${TARGET_NAME} ${ARG_SRC} ${MANIFEST})
+ setup_platform_linker_flags(${TARGET_NAME})
target_include_directories(${TARGET_NAME} PUBLIC "${TEST_INC}")
target_include_directories(${TARGET_NAME} SYSTEM PUBLIC "${TEST_INC_SYS}")
target_link_libraries(${TARGET_NAME} ${ARG_EXTRA_LIBS} ${PLATFORM_LINKLIBS})