mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 16:34:18 +09:00
[cmake,flags] print all configuration flags
Since we do not know wich configuration will be build with multiconfiguration generators print out all C_FLAGS_XXX and CXX_FLAGS_XXX variables
This commit is contained in:
@@ -30,9 +30,6 @@ foreach(var ${res})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
include(CFlagsToVar)
|
||||
cflagstovar(C_FLAGS)
|
||||
|
||||
string(REPLACE ";" " " UWAC_BUILD_CONFIG "${UWAC_BUILD_CONFIG_LIST}")
|
||||
cleaning_configure_file(version.h.in ${CMAKE_CURRENT_BINARY_DIR}/../include/uwac/version.h)
|
||||
cleaning_configure_file(buildflags.h.in ${CMAKE_CURRENT_BINARY_DIR}/../include/uwac/buildflags.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 */
|
||||
|
||||
Reference in New Issue
Block a user