[Bf-blender-cvs] [c30718ded90] geometry-nodes-simulation: cmake/win: Allow running blender_test from the VS debugger
Ray Molenkamp
noreply at git.blender.org
Mon Dec 19 19:05:21 CET 2022
Commit: c30718ded903118182d893e34081a9e88a6d17f7
Author: Ray Molenkamp
Date: Thu Dec 15 09:04:59 2022 -0700
Branches: geometry-nodes-simulation
https://developer.blender.org/rBc30718ded903118182d893e34081a9e88a6d17f7
cmake/win: Allow running blender_test from the VS debugger
This was missing some paths setup in the environment, ctest
normally sets this up before running the tests from the CLI
but that does not help the IDE all that much.
===================================================================
M tests/gtests/runner/CMakeLists.txt
===================================================================
diff --git a/tests/gtests/runner/CMakeLists.txt b/tests/gtests/runner/CMakeLists.txt
index be0aa65d409..eac76db22db 100644
--- a/tests/gtests/runner/CMakeLists.txt
+++ b/tests/gtests/runner/CMakeLists.txt
@@ -43,6 +43,7 @@ if(WIN32)
target_link_libraries(blender_test ${_lib})
target_link_options(blender_test PRIVATE /wholearchive:$<TARGET_FILE:${_lib}>)
endforeach()
+ set_target_properties(blender_test PROPERTIES VS_DEBUGGER_ENVIRONMENT "${PLATFORM_ENV_INSTALL};$<TARGET_FILE_DIR:blender>")
elseif(APPLE)
# force_load for `_test_libs` ensures that all symbols definitely make it into the test binary.
# But linking against them again using `target_link_libraries` creates duplicate symbol
More information about the Bf-blender-cvs
mailing list