Use the installation directories provided by cmake
Some systems will define the library path as lib64. Also update other install commands to use the values discovered by the GNUInstallDirs module.
This commit is contained in:
parent
7346d1ba3b
commit
cd2e844066
@ -1,6 +1,6 @@
|
||||
# Copyright (c) 2021-2022 Barcelona Supercomputing Center (BSC)
|
||||
# Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
install(FILES ovni.h DESTINATION include)
|
||||
install(FILES ovni.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||
|
@ -79,10 +79,10 @@ if(USE_MPI)
|
||||
find_package(MPI REQUIRED)
|
||||
add_executable(ovnisync ovnisync.c)
|
||||
target_link_libraries(ovnisync m MPI::MPI_C)
|
||||
install(TARGETS ovnisync RUNTIME DESTINATION bin)
|
||||
install(TARGETS ovnisync RUNTIME)
|
||||
else()
|
||||
message(STATUS "Disabling ovnisync as MPI is disabled")
|
||||
endif()
|
||||
|
||||
install(TARGETS ovniemu ovnidump ovnisort ovnitop RUNTIME DESTINATION bin)
|
||||
install(TARGETS ovniemu ovnidump ovnisort ovnitop RUNTIME)
|
||||
install(FILES ovnitop.1 DESTINATION "${CMAKE_INSTALL_MANDIR}/man1")
|
||||
|
@ -14,4 +14,4 @@ add_library(ovni-static STATIC ovni.c)
|
||||
target_link_libraries(ovni-static parson-static common-static)
|
||||
target_include_directories(ovni-static PUBLIC "${CMAKE_SOURCE_DIR}/include")
|
||||
|
||||
install(TARGETS ovni LIBRARY DESTINATION lib)
|
||||
install(TARGETS ovni LIBRARY)
|
||||
|
Loading…
Reference in New Issue
Block a user