File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -256,6 +256,11 @@ if(BUILD_TESTING)
256256 set (ENV_PATH "$ENV{PATH} " )
257257 file (TO_CMAKE_PATH "${ENV_PATH} " ENV_PATH )
258258 set (TEST_PATH "${ENV_PATH} " )
259+ set (append_library_dirs "${CMAKE_CURRENT_BINARY_DIR} " )
260+ if (WIN32 )
261+ set (append_library_dirs "${append_library_dirs} /$<CONFIG >" )
262+ endif ()
263+
259264 if (rmw_implementation STREQUAL "rmw_connext_cpp" )
260265 # Connext 5.3.1 needs RTI's OpenSSL binaries (based on EOL 1.0.2) to be
261266 # on the PATH at runtime as the system version of OpenSSL is not supported
@@ -316,11 +321,6 @@ if(BUILD_TESTING)
316321 custom_executable (test_secure_subscriber_cpp
317322 "test/test_secure_subscriber.cpp" )
318323
319- set (append_library_dirs "${CMAKE_CURRENT_BINARY_DIR} " )
320- if (WIN32 )
321- set (append_library_dirs "${append_library_dirs} /$<CONFIG >" )
322- endif ()
323-
324324 # finding gtest once in the highest scope
325325 # prevents finding it repeatedly in each local scope
326326 ament_find_gtest ()
You can’t perform that action at this time.
0 commit comments