Skip to content

Commit 95813f1

Browse files
committed
build: fix installation destination and executable permission of files
1 parent a55af9c commit 95813f1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

utils/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ else()
4141
message(" ERROR: Could not find an AOMP version of LLVM.")
4242
message(" You must build AOMP before building AOMP utils")
4343
message("")
44-
error(" Could not find an AOMP version of LLVM.")
44+
message(FATAL_ERROR " Could not find an AOMP version of LLVM.")
4545
endif()
4646

4747
set(AOMP_DIR_FOUND ${LLVM_DIR})
@@ -133,6 +133,12 @@ install(PROGRAMS
133133
${CMAKE_CURRENT_BINARY_DIR}/kokkos_build.sh
134134
${CMAKE_CURRENT_BINARY_DIR}/aompversion
135135
${CMAKE_CURRENT_SOURCE_DIR}/bin/blt.patch
136+
DESTINATION "${DEVEL_PACKAGE}${CMAKE_INSTALL_BINDIR}")
137+
138+
install(FILES
136139
${CMAKE_CURRENT_SOURCE_DIR}/bin/raja.patch
137-
${CMAKE_CURRENT_BINARY_DIR}/modulefile
138140
DESTINATION "${DEVEL_PACKAGE}${CMAKE_INSTALL_BINDIR}")
141+
142+
install(FILES
143+
${CMAKE_CURRENT_BINARY_DIR}/modulefile
144+
DESTINATION "${DEVEL_PACKAGE}${CMAKE_INSTALL_DATADIR}")

0 commit comments

Comments
 (0)