Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
xacc
Commits
3c97f308
Commit
3c97f308
authored
Oct 14, 2019
by
Mccaskey, Alex
Browse files
Fixing mac build bug in linking to antlr from pauli
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
4486d68b
Pipeline
#75638
passed with stage
in 5 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
quantum/observable/pauli/CMakeLists.txt
View file @
3c97f308
...
...
@@ -54,11 +54,11 @@ usFunctionEmbedResources(TARGET
manifest.json
)
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 LINK_FLAGS
"-undefined dynamic_lookup"
)
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 LINK_FLAGS
"-shared"
)
endif
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment