Commit 3c97f308 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

Fixing mac build bug in linking to antlr from pauli


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent 4486d68b
Pipeline #75638 passed with stage
in 5 minutes and 9 seconds
...@@ -54,11 +54,11 @@ usFunctionEmbedResources(TARGET ...@@ -54,11 +54,11 @@ usFunctionEmbedResources(TARGET
manifest.json) manifest.json)
if(APPLE) if(APPLE)
target_link_libraries(${LIBRARY_NAME} PUBLIC xacc PRIVATE CppMicroServices ${CMAKE_SOURCE_DIR}/dist/libantlr4-runtime.dylib) target_link_libraries(${LIBRARY_NAME} PUBLIC xacc PRIVATE ${CMAKE_SOURCE_DIR}/dist/libantlr4-runtime.dylib)
set_target_properties(${LIBRARY_NAME} PROPERTIES INSTALL_RPATH "@loader_path") set_target_properties(${LIBRARY_NAME} PROPERTIES INSTALL_RPATH "@loader_path")
set_target_properties(${LIBRARY_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") set_target_properties(${LIBRARY_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
else() else()
target_link_libraries(${LIBRARY_NAME} PUBLIC xacc PRIVATE CppMicroServices ${CMAKE_SOURCE_DIR}/dist/libantlr4-runtime.so) target_link_libraries(${LIBRARY_NAME} PUBLIC xacc PRIVATE ${CMAKE_SOURCE_DIR}/dist/libantlr4-runtime.so)
set_target_properties(${LIBRARY_NAME} PROPERTIES INSTALL_RPATH "$ORIGIN") set_target_properties(${LIBRARY_NAME} PROPERTIES INSTALL_RPATH "$ORIGIN")
set_target_properties(${LIBRARY_NAME} PROPERTIES LINK_FLAGS "-shared") set_target_properties(${LIBRARY_NAME} PROPERTIES LINK_FLAGS "-shared")
endif() endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment