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
This commit is contained in:
Brecht Van Lommel
2020-09-15 16:00:15 +02:00
parent 0700c045bc
commit f9fcb25d52
11 changed files with 22 additions and 51 deletions

View File

@@ -51,7 +51,7 @@ BLENDER_SRC_GTEST_EX(
EXTRA_LIBS "${TEST_LIBS}"
SKIP_ADD_TEST
)
setup_liblinks(blender_test)
setup_platform_linker_libs(blender_test)
if(WIN32)
foreach(_lib ${_test_libs})