Skip to content

Commit

Permalink
revert IGN_CONFIG_PATH in CMakeLists
Browse files Browse the repository at this point in the history
Signed-off-by: Mabel Zhang <mabel@openrobotics.org>
  • Loading branch information
mabelzhang committed Jul 20, 2022
1 parent f314e5f commit a4e4631
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/cmd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,20 @@ foreach(test ${test_list})
endforeach()

if (TARGET UNIT_ign_TEST)
set_tests_properties(
UNIT_ign_TEST
PROPERTIES
ENVIRONMENT
"IGN_CONFIG_PATH=${CMAKE_BINARY_DIR}/test/conf/$<CONFIG>"
)

# Running `ign launch` on macOS has problems when run with /usr/bin/ruby
# due to System Integrity Protection (SIP). Try to find ruby from
# homebrew as a workaround.
if (APPLE)
find_program(BREW_RUBY ruby HINTS /usr/local/opt/ruby/bin)
endif()

target_compile_definitions(UNIT_ign_TEST PRIVATE
"IGN_CONFIG_PATH=\"${CMAKE_BINARY_DIR}/test/conf\"")

target_compile_definitions(UNIT_ign_TEST PRIVATE
"BREW_RUBY=\"${BREW_RUBY} \"")

Expand Down

0 comments on commit a4e4631

Please sign in to comment.