Bugzilla – Attachment 606 Details for
Bug 1072
CMAKE_INSTALL_PREFIX is set but 'make install' is writing to /usr/local
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
This bugzilla service is closed. All entries have been migrated to
https://gitlab.com/libeigen/eigen
[patch]
use share dir on non-root install
patch (text/plain), 1.33 KB, created by
Nathan
on 2015-09-27 13:59:58 UTC
(
hide
)
Description:
use share dir on non-root install
Filename:
MIME Type:
Creator:
Nathan
Created:
2015-09-27 13:59:58 UTC
Size:
1.33 KB
patch
obsolete
>diff -r 25c4b01d1bbc CMakeLists.txt >--- a/CMakeLists.txt Sat Sep 19 21:44:14 2015 +0200 >+++ b/CMakeLists.txt Sun Sep 27 07:41:51 2015 -0600 >@@ -7,6 +7,10 @@ > if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) > message(FATAL_ERROR "In-source builds not allowed. Please make a new directory (called a build directory) and run CMake from there. You may need to remove CMakeCache.txt. ") > endif() >+if( CMAKE_INSTALL_PREFIX ) >+ SET(pkg_config_install_dir ${CMAKE_INSTALL_PREFIX}/share) >+ message(STATUS "non-standard installation directory; installing pkg-config into ${pkg_config_install_dir}" ) >+endif() > > # guard against bad build-type strings > >@@ -376,7 +380,7 @@ > DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel > ) > >-if(EIGEN_BUILD_PKGCONFIG) >+if( NOT pkg_config_install_dir ) # aka this is a standard installation > SET(path_separator ":") > STRING(REPLACE ${path_separator} ";" pkg_config_libdir_search "$ENV{PKG_CONFIG_LIBDIR}") > message(STATUS "searching for 'pkgconfig' directory in PKG_CONFIG_LIBDIR ( $ENV{PKG_CONFIG_LIBDIR} ), ${CMAKE_INSTALL_PREFIX}/share, and ${CMAKE_INSTALL_PREFIX}/lib") >@@ -393,7 +397,7 @@ > install(FILES ${CMAKE_CURRENT_BINARY_DIR}/eigen3.pc > DESTINATION ${pkg_config_install_dir}/pkgconfig > ) >-endif(EIGEN_BUILD_PKGCONFIG) >+endif(pkg_config_install_dir) > > add_subdirectory(Eigen) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1072
:
606
|
607
|
608