Skip to content

Commit

Permalink
Adds the gz_path env variable to UNIT_gz_TEST
Browse files Browse the repository at this point in the history
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
  • Loading branch information
Voldivh committed Oct 12, 2023
1 parent 420cd33 commit 775e60b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ if (BUILD_TESTING)
target_link_libraries(UNIT_FrameSemantics_TEST TINYXML2::TINYXML2)
endif()

if(TARGET UNIT_gz_TEST)
set(_env_vars)
list(APPEND _env_vars "GZ_CONFIG_PATH=${CMAKE_BINARY_DIR}/test/conf")
list(APPEND _env_vars "GZ_CONFIG_PATH=${CMAKE_BINARY_DIR}/test/conf/$<CONFIG>")

set_tests_properties(UNIT_gz_TEST PROPERTIES
ENVIRONMENT "${_env_vars}")
endif()

if (TARGET UNIT_ParamPassing_TEST)
target_link_libraries(UNIT_ParamPassing_TEST
TINYXML2::TINYXML2
Expand Down

0 comments on commit 775e60b

Please sign in to comment.