Add the ovniver program to report the version
This commit is contained in:
parent
97c936d41f
commit
bf8a2213c1
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Added
|
||||
|
||||
- Add `ovni_version_get()` function.
|
||||
- Add the `ovniver` program to report the `libovni.so` version.
|
||||
|
||||
## [1.2.2] - 2022-07-26
|
||||
|
||||
|
@ -70,6 +70,9 @@ target_link_libraries(ovnisort emu parson-static ovni-static)
|
||||
add_executable(ovnitop ovnitop.c)
|
||||
target_link_libraries(ovnitop emu parson-static ovni-static)
|
||||
|
||||
add_executable(ovniver ovniver.c)
|
||||
target_link_libraries(ovniver ovni)
|
||||
|
||||
set(USE_MPI ON CACHE BOOL "Use MPI (required by ovnisync)")
|
||||
if(USE_MPI)
|
||||
# Use <PackageName>_ROOT variables if available, commonly used by MPI
|
||||
@ -85,5 +88,5 @@ else()
|
||||
message(STATUS "Disabling ovnisync as MPI is disabled")
|
||||
endif()
|
||||
|
||||
install(TARGETS ovniemu ovnidump ovnisort ovnitop)
|
||||
install(TARGETS ovniemu ovnidump ovnisort ovnitop ovniver)
|
||||
install(FILES ovnitop.1 DESTINATION "${CMAKE_INSTALL_MANDIR}/man1")
|
||||
|
14
src/emu/ovniver.c
Normal file
14
src/emu/ovniver.c
Normal file
@ -0,0 +1,14 @@
|
||||
/* Copyright (c) 2023 Barcelona Supercomputing Center (BSC)
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "ovni.h"
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
printf("libovni version compiled %s, dynamic %s\n",
|
||||
OVNI_LIB_VERSION, ovni_version_get());
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user