Skip to content

Commit e9ece57

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

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

utils/CMakeLists.txt

Lines changed: 9 additions & 3 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-
${CMAKE_CURRENT_SOURCE_DIR}/bin/raja.patch
137-
${CMAKE_CURRENT_BINARY_DIR}/modulefile
138136
DESTINATION "${DEVEL_PACKAGE}${CMAKE_INSTALL_BINDIR}")
137+
138+
install(FILES
139+
${CMAKE_CURRENT_BINARY_DIR}/raja.patch
140+
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)