Skip to content

Commit

Permalink
Tidy-up
Browse files Browse the repository at this point in the history
  • Loading branch information
Shillaker committed Oct 19, 2020
1 parent 2524e05 commit 96c9270
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
build/
install/

# Clang
.clangd
Expand Down
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ if(FAABRIC_BUILD_TESTS)
add_subdirectory(tests/utils)
endif()

# Installation step
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

# Install all headers from subdirectories but preserve the dir structure
function(lib_headers libname)
file(GLOB LIB_HEADERS "${FAABRIC_INCLUDE_DIR}/faabric/${libname}/*.h")
Expand Down
3 changes: 1 addition & 2 deletions src/mpi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ set_target_properties(faabricmpi

if(FAASM_BUILD_TYPE STREQUAL "wasm")
set(LIB_DIRECTORY ${CMAKE_SYSROOT}/lib/wasm32-wasi)
set(HEADER_DEST ${CMAKE_SYSROOT}/include/faabric/mpi)

install(TARGETS faabricmpi
ARCHIVE DESTINATION ${LIB_DIRECTORY}
LIBRARY DESTINATION ${LIB_DIRECTORY}
PUBLIC_HEADER DESTINATION ${HEADER_DEST}
PUBLIC_HEADER DESTINATION ${CMAKE_SYSROOT}/include/faabric/mpi
)
else()
install(TARGETS faabricmpi
Expand Down

0 comments on commit 96c9270

Please sign in to comment.