Skip to content

Commit

Permalink
Add -rpath to macOS idlc/xtests build flags
Browse files Browse the repository at this point in the history
  • Loading branch information
eboasson committed Mar 27, 2024
1 parent 1c073c1 commit dfdbaf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tools/idlc/xtests/Compile.cmake
Expand Up @@ -52,6 +52,9 @@ else()
set(ENV{LIBRARY_PATH} "$ENV{LIBRARY_PATH}:$ENV{CDDS_LIB_PATH}")
set(_output_flag "-o")
set(_lib_path "")
if(APPLE)
list(APPEND _lib_path "-rpath" "$ENV{CDDS_LIB_PATH}")
endif()
set(_lib "-lddsc")
set(_fdbg "-g")
set(_fwarn "-Wall")
Expand Down Expand Up @@ -141,4 +144,4 @@ foreach(_source ${_sources})
message(FATAL_ERROR "Test failed ${_source}: ${_result} ${_error}")
endif()

endforeach()
endforeach()

0 comments on commit dfdbaf1

Please sign in to comment.