Commit 1185fb48 authored by Rob Earhart's avatar Rob Earhart

Explicitly set target properties

parent 147b07cc
......@@ -13,14 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ******************************************************************************
set(CMAKE_MACOSX_RPATH 1)
if(APPLE)
set(CMAKE_INSTALL_RPATH "@loader_path/;@loader_path/../../..")
elseif(DEFINED NGRAPH_RPATH)
set(CMAKE_INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../../../;${NGRAPH_RPATH}")
else()
set(CMAKE_INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../../../")
endif()
set(SRC
plaidml_backend.cpp
......@@ -83,3 +75,11 @@ target_include_directories(plaidml_backend SYSTEM PUBLIC ${PLAIDML_INCLUDE_DIRS}
target_link_libraries(plaidml_backend PUBLIC ngraph libplaidml)
install(TARGETS plaidml_backend LIBRARY DESTINATION ${NGRAPH_INSTALL_LIB})
set(CMAKE_MACOSX_RPATH 1)
if(APPLE)
set_property(TARGET plaidml_backend PROPERTY INSTALL_RPATH "@loader_path/;@loader_path/../../..")
elseif(DEFINED NGRAPH_RPATH)
set_property(TARGET plaidml_backend PROPERTY INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../../..;${NGRAPH_RPATH}")
else()
set_property(TARGET plaidml_backend PROPERTY INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../../..")
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