Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:redwil:15.4
symengine
use_cmake_lib_dir.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File use_cmake_lib_dir.patch of Package symengine
From 633e7d91575ba6d3b219d99b4ab0f847fd417fa3 Mon Sep 17 00:00:00 2001 From: Isuru Fernando <isuruf@gmail.com> Date: Tue, 22 Aug 2017 11:14:17 -0500 Subject: [PATCH] Use GNUInstallDirs.cmake for figuring out the BINDIR and LIBDIR --- symengine/CMakeLists.txt | 8 +++++--- symengine/utilities/teuchos/CMakeLists.txt | 9 ++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/symengine/CMakeLists.txt b/symengine/CMakeLists.txt index 300dae542..9ebb321d5 100644 --- a/symengine/CMakeLists.txt +++ b/symengine/CMakeLists.txt @@ -198,11 +198,13 @@ if (WITH_SYMENGINE_TEUCHOS) endif() target_link_libraries(symengine ${LIBS}) +include(GNUInstallDirs) + install(TARGETS symengine EXPORT SymEngineTargets - RUNTIME DESTINATION bin - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ) install(FILES "${symengine_BINARY_DIR}/symengine/symengine_config.h" "${symengine_BINARY_DIR}/symengine/symengine_export.h" diff --git a/symengine/utilities/teuchos/CMakeLists.txt b/symengine/utilities/teuchos/CMakeLists.txt index 1881de126..e4f9ea823 100644 --- a/symengine/utilities/teuchos/CMakeLists.txt +++ b/symengine/utilities/teuchos/CMakeLists.txt @@ -47,11 +47,14 @@ include_directories(BEFORE ${teuchos_BINARY_DIR}) add_library(teuchos STATIC ${SRC}) + +include(GNUInstallDirs) + install(TARGETS teuchos EXPORT SymEngineTargets - RUNTIME DESTINATION bin - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ) if (NOT WITH_SYMENGINE_RCP)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor