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
cdf048f4
Commit
cdf048f4
authored
Feb 01, 2018
by
Mccaskey, Alex
Browse files
fixing apple build bug
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
967c8d6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
cdf048f4
...
...
@@ -90,6 +90,7 @@ ExternalProject_Add(xacc-core
-DCPPUS_INCLUDE_DIR=
${
CppMicroServices_INCLUDE_DIR
}
-DCPPUS_LIBRARY_DIR=
${
CppMicroServices_LIBRARY_DIR
}
-DCppRSDK_INCLUDE_DIR=
${
CppRSDK_INCLUDE_DIR
}
-DOPENSSL_ROOT_DIR=
${
OPENSSL_ROOT_DIR
}
-DOPENSSL_INCLUDE_DIR=
${
OPENSSL_INCLUDE_DIR
}
-DOPENSSL_LIBRARIES=
${
OPENSSL_LIBRARIES
}
CMAKE_CACHE_ARGS -DCMAKE_PREFIX_PATH:PATH=
${
CMAKE_PREFIX_PATH
}
...
...
xacc/CMakeLists.txt
View file @
cdf048f4
...
...
@@ -52,12 +52,18 @@ file (GLOB SRC *.cpp program/*.cpp utils/*.cpp accelerator/remote/*.cpp)
set
(
CppUsLib CppMicroServicesd
)
link_directories
(
${
CPPUS_LIBRARY_DIR
}
)
link_directories
(
${
Boost_LIBRARY_DIR
}
)
link_directories
(
${
CMAKE_INSTALL_PREFIX
}
/lib
)
add_library
(
${
LIBRARY_NAME
}
SHARED
${
SRC
}
)
find_library
(
cppus_has_d_suffix CppMicroServicesd
)
if
(
NOT cppus_has_d_suffix
)
set
(
CppUsLib CppMicroServices
)
endif
()
if
(
APPLE
)
set
(
OPENSSL_LIBRARIES
"
${
OPENSSL_LIBRARIES
}
;
${
OPENSSL_ROOT_DIR
}
/lib/libcrypto.dylib"
)
endif
()
target_link_libraries
(
${
LIBRARY_NAME
}
${
Boost_LIBRARIES
}
${
CppUsLib
}
${
OPENSSL_LIBRARIES
}
cpprest
)
# Get the test files
...
...
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