Commit: d2aebf10fae7bd6f0e854deea2c3c776bd5cde8c
Author: Ray Molenkamp
Date:   Thu Dec 15 09:04:59 2022 -0700
Branches: master
https://developer.blender.org/rBd2aebf10fae7bd6f0e854deea2c3c776bd5cde8c

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

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to