Skip to content

Commit

Permalink
Set IGN_CONFIG_PATH for testing.
Browse files Browse the repository at this point in the history
Signed-off-by: Franco Cipollone <[email protected]>
  • Loading branch information
francocipollone committed Jul 15, 2021
1 parent bc9c373 commit 13bc30a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions model/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ if(TARGET UNIT_ModelCommandAPI_TEST)
target_compile_definitions(UNIT_ModelCommandAPI_TEST PRIVATE
"PROJECT_SOURCE_PATH=\"${PROJECT_SOURCE_DIR}\"")

set(_env_vars)
list(APPEND _env_vars "IGN_CONFIG_PATH=${CMAKE_BINARY_DIR}/test/conf")

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

if(NOT WIN32)
Expand Down

0 comments on commit 13bc30a

Please sign in to comment.