Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f434e8

Browse files
committed
move GNUDirs include a bit down again...
1 parent 08e4842 commit 6f434e8

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ endif()
1010
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
1111
include(cmake/build_type.cmake)
1212
include(cmake/adjust_mpiexec_flags.cmake)
13-
include(GNUInstallDirs)
1413

1514
# Options
1615
#
@@ -91,6 +90,8 @@ endif()
9190

9291
project(cosma VERSION 2.4.0 LANGUAGES CXX)
9392

93+
include(GNUInstallDirs)
94+
9495
# preserve rpaths when installing and make the install folder relocatable
9596
# use `CMAKE_SKIP_INSTALL_RPATH` to skip this
9697
# https://spack.readthedocs.io/en/latest/workflows.html#write-the-cmake-build

docker/asan/deploy.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ RUN mkdir /COSMA/build && cd /COSMA/build && \
1414
-DCOSMA_SCALAPACK=CUSTOM \
1515
-DCMAKE_BUILD_TYPE=Debug \
1616
-DCMAKE_CXX_FLAGS_DEBUG="-g -Og -fno-omit-frame-pointer -fsanitize=address,undefined" \
17-
-DCMAKE_INSTALL_PREFIX=/usr && \
17+
-DCMAKE_INSTALL_PREFIX=/root/COSMA-build && \
1818
make -j$(nproc) && \
19-
make DESTDIR=/root/COSMA-build install && \
19+
make install && \
2020
rm -rf /COSMA
2121

2222
RUN /root/libtree/libtree \

docker/cpu-release/deploy.Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ RUN COMPILERVARS_ARCHITECTURE=intel64 /opt/intel/bin/compilervars.sh && \
99
mkdir /COSMA/build && cd /COSMA/build && \
1010
CC=mpicc CXX=mpicxx cmake .. \
1111
-DCOSMA_WITH_TESTS=ON \
12-
-DCUDA_PATH=/usr/local/cuda \
1312
-DCOSMA_BLAS=MKL \
1413
-DCOSMA_SCALAPACK=MKL \
1514
-DCMAKE_BUILD_TYPE=Release \
16-
-DCMAKE_INSTALL_PREFIX=/usr && \
15+
-DCMAKE_INSTALL_PREFIX=/root/COSMA-build && \
1716
make -j$(nproc) && \
18-
make DESTDIR=/root/COSMA-build install && \
17+
make install && \
1918
rm -rf /COSMA
2019

2120
ENV MKL_LIB=/opt/intel/compilers_and_libraries/linux/mkl/lib/intel64

docker/gpu/deploy.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ RUN mkdir /COSMA/build && cd /COSMA/build && \
1414
-DCOSMA_BLAS=CUDA \
1515
-DCOSMA_SCALAPACK=CUSTOM \
1616
-DCMAKE_BUILD_TYPE=Release \
17-
-DCMAKE_INSTALL_PREFIX=/usr && \
17+
-DCMAKE_INSTALL_PREFIX=/root/COSMA-build && \
1818
make -j$(nproc) && \
19-
make DESTDIR=/root/COSMA-build install && \
19+
make && \
2020
rm -rf /COSMA
2121

2222
# Run linuxdeploy, and add a bunch of libs that are dlopen'ed by mkl

0 commit comments

Comments
 (0)