mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-16 20:23:02 +00:00
Some minor fixes for packaging
See https://github.com/gnuradio/volk/pull/100
This commit is contained in:
parent
c5c4dd17e5
commit
a30bf16abf
@ -28,11 +28,11 @@
|
||||
|
||||
__VOLK_DECL_BEGIN
|
||||
|
||||
VOLK_API char* volk_gnsssdr_prefix();
|
||||
VOLK_API char* volk_gnsssdr_version();
|
||||
VOLK_API char* volk_gnsssdr_c_compiler();
|
||||
VOLK_API char* volk_gnsssdr_compiler_flags();
|
||||
VOLK_API char* volk_gnsssdr_available_machines();
|
||||
VOLK_API const char* volk_gnsssdr_prefix();
|
||||
VOLK_API const char* volk_gnsssdr_version();
|
||||
VOLK_API const char* volk_gnsssdr_c_compiler();
|
||||
VOLK_API const char* volk_gnsssdr_compiler_flags();
|
||||
VOLK_API const char* volk_gnsssdr_available_machines();
|
||||
|
||||
__VOLK_DECL_END
|
||||
|
||||
|
@ -499,7 +499,7 @@ endif()
|
||||
message(STATUS "Loading version ${VERSION} into constants...")
|
||||
|
||||
#double escape for windows backslash path separators
|
||||
string(REPLACE "\\" "\\\\" prefix ${prefix})
|
||||
string(REPLACE "\\" "\\\\" prefix "${prefix}")
|
||||
|
||||
configure_file(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/constants.c.in
|
||||
|
@ -21,33 +21,36 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <volk_gnsssdr/constants.h>
|
||||
|
||||
char*
|
||||
const char*
|
||||
volk_gnsssdr_prefix()
|
||||
{
|
||||
const char *prefix = getenv("VOLK_GNSSSDR_PREFIX");
|
||||
if (prefix != NULL) return prefix;
|
||||
return "@prefix@";
|
||||
}
|
||||
|
||||
char*
|
||||
const char*
|
||||
volk_gnsssdr_version()
|
||||
{
|
||||
return "@VERSION@";
|
||||
}
|
||||
|
||||
char*
|
||||
const char*
|
||||
volk_gnsssdr_c_compiler()
|
||||
{
|
||||
return "@cmake_c_compiler_version@";
|
||||
}
|
||||
|
||||
char*
|
||||
const char*
|
||||
volk_gnsssdr_compiler_flags()
|
||||
{
|
||||
return "@COMPILER_INFO@";
|
||||
}
|
||||
|
||||
char*
|
||||
const char*
|
||||
volk_gnsssdr_available_machines()
|
||||
{
|
||||
return "@available_machines@";
|
||||
|
Loading…
Reference in New Issue
Block a user