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 154b625
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions model/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ ign_build_tests(

if(TARGET UNIT_ModelCommandAPI_TEST)

set(IGN_CONFIG_PATH "${CMAKE_BINARY_DIR}/model/test/lib/ruby/ignition")
target_compile_definitions(UNIT_ModelCommandAPI_TEST PRIVATE
"IGN_PATH=\"${IGNITION-TOOLS_BINARY_DIRS}\"")

target_compile_definitions(UNIT_ModelCommandAPI_TEST PRIVATE
"PROJECT_SOURCE_PATH=\"${PROJECT_SOURCE_DIR}\"")

set_tests_properties(UNIT_ModelCommandAPI_TEST PROPERTIES
ENVIRONMENT "IGN_CONFIG_PATH=${IGN_CONFIG_PATH}"
)
endif()

if(NOT WIN32)
Expand Down

0 comments on commit 154b625

Please sign in to comment.