diff options
author | Ray Molenkamp <github@lazydodo.com> | 2022-10-05 18:46:18 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2022-10-05 18:46:18 +0300 |
commit | 42736e0b3f85dc248186dd6dc5349a99addc8c84 (patch) | |
tree | d0768a91d8ebfb50642034fdf8437199a5e420b7 /build_files/cmake/Modules/GTestTesting.cmake | |
parent | 42ce93a2cbc28836d22b7fa47e99aa3df76e1acc (diff) | |
parent | b47a234f98dd7e6e0b53ad96b5b4d278635874d8 (diff) |
Merge remote-tracking branch 'origin/master' into tmp-vfx-platform-2023
Diffstat (limited to 'build_files/cmake/Modules/GTestTesting.cmake')
-rw-r--r-- | build_files/cmake/Modules/GTestTesting.cmake | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/build_files/cmake/Modules/GTestTesting.cmake b/build_files/cmake/Modules/GTestTesting.cmake index b0774a1b1ac..d6f5b2a5cd6 100644 --- a/build_files/cmake/Modules/GTestTesting.cmake +++ b/build_files/cmake/Modules/GTestTesting.cmake @@ -40,12 +40,10 @@ macro(BLENDER_SRC_GTEST_EX) set(MANIFEST "${CMAKE_BINARY_DIR}/tests.exe.manifest") endif() - add_definitions(-DBLENDER_GFLAGS_NAMESPACE=${GFLAGS_NAMESPACE}) - add_definitions(${GFLAGS_DEFINES}) - add_definitions(${GLOG_DEFINES}) - add_executable(${TARGET_NAME} ${ARG_SRC} ${MANIFEST}) setup_platform_linker_flags(${TARGET_NAME}) + target_compile_definitions(${TARGET_NAME} PRIVATE ${GFLAGS_DEFINES}) + target_compile_definitions(${TARGET_NAME} PRIVATE ${GLOG_DEFINES}) 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}) |