[cmake] provide default project version

each subproject inherits the project version of the top level project
This commit is contained in:
Armin Novak
2023-12-21 17:24:43 +01:00
committed by akallabeth
parent 4aad6e9d42
commit 7f25a7cebf
12 changed files with 113 additions and 16 deletions

View File

@@ -157,6 +157,9 @@ endif()
message(STATUS "Git Revision ${GIT_REVISION}")
# Make the detected version available as default version for all subprojects
set(FREERDP_DEFAULT_PROJECT_VERSION ${FREERDP_VERSION} CACHE STRING INTERNAL)
set(FREERDP_MAJOR_DIR "freerdp${FREERDP_VERSION_MAJOR}")
set(FREERDP_INCLUDE_DIR "include/${FREERDP_MAJOR_DIR}/")