Настройки компиляции

This commit is contained in:
Andrei Astafev 2020-03-30 23:02:17 +03:00
parent 7c62d755b9
commit 873e29592c
3 changed files with 5 additions and 34 deletions

View File

@ -113,4 +113,9 @@ function(common_target_properties Name)
${__visibility}
ANALYSIS)
endif()
target_compile_definitions(
${Name}
${__visibility}
"TARGET_LSB_ID_${LSB_DISTRIBUTOR_ID}"
"TARGET_LSB_CODENAME_${LSB_CODENAME}")
endfunction()

View File

@ -1,23 +0,0 @@
#ifndef @CMLIB_PROJECT_NAME_CANONICAL@_CMLIB_CONFIG_HPP_
#define @CMLIB_PROJECT_NAME_CANONICAL@_CMLIB_CONFIG_HPP_
#pragma once
#define @CMLIB_PROJECT_NAME_CANONICAL@_VERSION_STR "@PROJECT_VERSION@"
#define @CMLIB_PROJECT_NAME_CANONICAL@_VERSION_INT @PROJECT_VERSION_INT@
#define @CMLIB_PROJECT_NAME_CANONICAL@_BUILD_TYPE "@CMAKE_BUILD_TYPE@"
#define @CMLIB_PROJECT_NAME_CANONICAL@_BUILD_DATE "@TODAY@"
#cmakedefine _LARGEFILE_SOURCE
#cmakedefine _LARGE_FILES
#cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
#cmakedefine HAVE_FSEEKO
#cmakedefine HAVE__FSEEKI64
#cmakedefine HAVE_LARGEFILES @HAVE_LARGEFILES@
#define TARGET_LSB_ID_@LSB_DISTRIBUTOR_ID@
#define TARGET_LSB_CODENAME_@LSB_CODENAME@
#define TARGET_LSB_RELEASE "@LSB_RELEASE@"
#endif /* @CMLIB_PROJECT_NAME_CANONICAL@_CMLIB_CONFIG_HPP_ */

View File

@ -54,16 +54,5 @@
#define CMLIB_BUILD_DATE "@TODAY@"
#endif
#cmakedefine _LARGEFILE_SOURCE
#cmakedefine _LARGE_FILES
#cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
#cmakedefine HAVE_FSEEKO
#cmakedefine HAVE__FSEEKI64
#cmakedefine HAVE_LARGEFILES @HAVE_LARGEFILES@
#define TARGET_LSB_ID_@LSB_DISTRIBUTOR_ID@
#define TARGET_LSB_CODENAME_@LSB_CODENAME@
#define TARGET_LSB_RELEASE "@LSB_RELEASE@"
#endif /* @CMLIB_PROJECT_NAME_CANONICAL@_CMLIB_CONFIG_HPP_ */