From 502e156e54461e5e747d8d88f9c70567b585ab56 Mon Sep 17 00:00:00 2001 From: Guillaume Sylvand <guillaume.sylvand@airbus.com> Date: Wed, 7 Sep 2016 12:47:22 +0000 Subject: [PATCH] CMakeLists.txt for OSX compilation : add INSTALL_NAME_DIR property in all libraries --- compute/CMakeLists.txt | 1 + coreblas/compute/CMakeLists.txt | 1 + runtime/parsec/CMakeLists.txt | 1 + runtime/quark/CMakeLists.txt | 1 + runtime/starpu/CMakeLists.txt | 1 + 5 files changed, 5 insertions(+) diff --git a/compute/CMakeLists.txt b/compute/CMakeLists.txt index e8aa512c7..c997bfedf 100644 --- a/compute/CMakeLists.txt +++ b/compute/CMakeLists.txt @@ -255,6 +255,7 @@ add_dependencies(chameleon set_property(TARGET chameleon PROPERTY LINKER_LANGUAGE Fortran) set_property(TARGET chameleon PROPERTY Fortran_MODULE_DIRECTORY "${CMAKE_BINARY_DIR}/include") +set_property(TARGET chameleon PROPERTY INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") # installation # ------------ diff --git a/coreblas/compute/CMakeLists.txt b/coreblas/compute/CMakeLists.txt index 96f880141..e50cb56f2 100644 --- a/coreblas/compute/CMakeLists.txt +++ b/coreblas/compute/CMakeLists.txt @@ -101,6 +101,7 @@ set(COREBLAS_SRCS add_library(coreblas ${COREBLAS_SRCS}) add_dependencies(coreblas coreblas_include) set_property(TARGET coreblas PROPERTY LINKER_LANGUAGE Fortran) +set_property(TARGET coreblas PROPERTY INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") # # Dependencies step # # ----------------- diff --git a/runtime/parsec/CMakeLists.txt b/runtime/parsec/CMakeLists.txt index 3128bd1eb..29776dbac 100644 --- a/runtime/parsec/CMakeLists.txt +++ b/runtime/parsec/CMakeLists.txt @@ -164,6 +164,7 @@ set(RUNTIME_SRCS # ----------- add_library(chameleon_parsec ${RUNTIME_SRCS}) set_property(TARGET chameleon_parsec PROPERTY LINKER_LANGUAGE Fortran) +set_property(TARGET chameleon_parsec PROPERTY INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") add_dependencies(chameleon_parsec chameleon_include diff --git a/runtime/quark/CMakeLists.txt b/runtime/quark/CMakeLists.txt index 0e94ef5b8..29f49ed04 100644 --- a/runtime/quark/CMakeLists.txt +++ b/runtime/quark/CMakeLists.txt @@ -161,6 +161,7 @@ set(RUNTIME_SRCS # ----------- add_library(chameleon_quark ${RUNTIME_SRCS}) set_property(TARGET chameleon_quark PROPERTY LINKER_LANGUAGE Fortran) +set_property(TARGET chameleon_quark PROPERTY INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") add_dependencies(chameleon_quark chameleon_include diff --git a/runtime/starpu/CMakeLists.txt b/runtime/starpu/CMakeLists.txt index c64907bea..1a12e5f1d 100644 --- a/runtime/starpu/CMakeLists.txt +++ b/runtime/starpu/CMakeLists.txt @@ -182,6 +182,7 @@ set(RUNTIME_SRCS # ----------- add_library(chameleon_starpu ${RUNTIME_SRCS}) set_property(TARGET chameleon_starpu PROPERTY LINKER_LANGUAGE Fortran) +set_property(TARGET chameleon_starpu PROPERTY INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") add_dependencies(chameleon_starpu chameleon_include -- GitLab