[buildflags] always include current build type
This commit is contained in:
parent
7f89396fdd
commit
c0560d5505
@ -1,10 +1,8 @@
|
||||
get_filename_component(GENERATE_MANPAGES_SCRIPT_DIR "${CMAKE_CURRENT_LIST_DIR}" ABSOLUTE)
|
||||
list(APPEND CMAKE_MODULE_PATH ${GENERATE_MANPAGES_SCRIPT_DIR})
|
||||
|
||||
include(CleaningConfigureFile)
|
||||
|
||||
set(SRC "${CURRENT_SOURCE_DIR}/${target}.${section}.in")
|
||||
cleaning_configure_file(${SRC} ${manpage}.tmp @ONLY IMMEDIATE)
|
||||
configure_file(${SRC} ${manpage}.tmp @ONLY IMMEDIATE)
|
||||
|
||||
# write header (aka name of the manpage), truncate existing
|
||||
file(READ ${CURRENT_BINARY_DIR}/${manpage}.tmp CONTENTS)
|
||||
@ -21,10 +19,10 @@ foreach(DEP IN LISTS DEPS)
|
||||
|
||||
if (EXISTS ${SRC_IN})
|
||||
message("using generated ${DST} from ${SRC_IN}")
|
||||
cleaning_configure_file(${SRC_IN} ${DST} @ONLY IMMEDIATE)
|
||||
configure_file(${SRC_IN} ${DST} @ONLY IMMEDIATE)
|
||||
elseif (EXISTS ${DST_IN})
|
||||
message("using generated ${DST} from ${DST_IN}")
|
||||
cleaning_configure_file(${DST_IN} ${DST} @ONLY IMMEDIATE)
|
||||
configure_file(${DST_IN} ${DST} @ONLY IMMEDIATE)
|
||||
elseif (EXISTS ${SRC})
|
||||
set(DST ${SRC})
|
||||
message("using ${DST}")
|
||||
|
@ -1,11 +1,11 @@
|
||||
#ifndef FREERDP_BUILD_FLAGS_H
|
||||
#define FREERDP_BUILD_FLAGS_H
|
||||
|
||||
#define FREERDP_CFLAGS "${C_FLAGS}"
|
||||
#define FREERDP_CFLAGS "${CURRENT_C_FLAGS}"
|
||||
#define FREERDP_COMPILER_ID "${CMAKE_C_COMPILER_ID}"
|
||||
#define FREERDP_COMPILER_VERSION "${CMAKE_C_COMPILER_VERSION}"
|
||||
#define FREERDP_TARGET_ARCH "${TARGET_ARCH}"
|
||||
#define FREERDP_BUILD_CONFIG "${FREERDP_BUILD_CONFIG}"
|
||||
#define FREERDP_BUILD_TYPE "${CMAKE_BUILD_TYPE}"
|
||||
#define FREERDP_BUILD_TYPE "${CURRENT_BUILD_CONFIG}"
|
||||
|
||||
#endif /* FREERDP_BUILD_FLAGS_H */
|
||||
|
@ -1,11 +1,11 @@
|
||||
#ifndef RDTK_BUILD_FLAGS_H
|
||||
#define RDTK_BUILD_FLAGS_H
|
||||
|
||||
#define RDTK_CFLAGS "${CMAKE_C_FLAGS}"
|
||||
#define RDTK_CFLAGS "${CMAKE_CURRENT_C_FLAGS}"
|
||||
#define RDTK_COMPILER_ID "${CMAKE_C_COMPILER_ID}"
|
||||
#define RDTK_COMPILER_VERSION "${CMAKE_C_COMPILER_VERSION}"
|
||||
#define RDTK_TARGET_ARCH "${TARGET_ARCH}"
|
||||
#define RDTK_BUILD_CONFIG "${RDTK_BUILD_CONFIG}"
|
||||
#define RDTK_BUILD_TYPE "${CMAKE_BUILD_TYPE}"
|
||||
#define RDTK_BUILD_TYPE "${CURRENT_BUILD_CONFIG}"
|
||||
|
||||
#endif /* RDTK_BUILD_FLAGS_H */
|
||||
|
@ -1,11 +1,11 @@
|
||||
#ifndef UWAC_BUILD_FLAGS_H
|
||||
#define UWAC_BUILD_FLAGS_H
|
||||
|
||||
#define UWAC_CFLAGS "${C_FLAGS}"
|
||||
#define UWAC_CFLAGS "${CURRENT_C_FLAGS}"
|
||||
#define UWAC_COMPILER_ID "${CMAKE_C_COMPILER_ID}"
|
||||
#define UWAC_COMPILER_VERSION "${CMAKE_C_COMPILER_VERSION}"
|
||||
#define UWAC_TARGET_ARCH "${TARGET_ARCH}"
|
||||
#define UWAC_BUILD_CONFIG "${UWAC_BUILD_CONFIG}"
|
||||
#define UWAC_BUILD_TYPE "${CMAKE_BUILD_TYPE}"
|
||||
#define UWAC_BUILD_TYPE "${CURRENT_BUILD_CONFIG}"
|
||||
|
||||
#endif /* UWAC_BUILD_FLAGS_H */
|
||||
|
@ -1,11 +1,11 @@
|
||||
#ifndef WINPR_BUILD_FLAGS_H
|
||||
#define WINPR_BUILD_FLAGS_H
|
||||
|
||||
#define WINPR_CFLAGS "${C_FLAGS}"
|
||||
#define WINPR_CFLAGS "${CURRENT_C_FLAGS}"
|
||||
#define WINPR_COMPILER_ID "${CMAKE_C_COMPILER_ID}"
|
||||
#define WINPR_COMPILER_VERSION "${CMAKE_C_COMPILER_VERSION}"
|
||||
#define WINPR_TARGET_ARCH "${TARGET_ARCH}"
|
||||
#define WINPR_BUILD_CONFIG "${WINPR_BUILD_CONFIG}"
|
||||
#define WINPR_BUILD_TYPE "${CMAKE_BUILD_TYPE}"
|
||||
#define WINPR_BUILD_TYPE "${CURRENT_BUILD_CONFIG}"
|
||||
|
||||
#endif /* WINPR_BUILD_FLAGS_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user