[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

@@ -16,7 +16,16 @@
# limitations under the License.
cmake_minimum_required(VERSION 3.13)
project(sfreerdp LANGUAGES C)
if (NOT FREERDP_DEFAULT_PROJECT_VERSION)
set(FREERDP_DEFAULT_PROJECT_VERSION "1.0.0.0")
endif()
project(sfreerdp
LANGUAGES C
VERSION ${FREERDP_DEFAULT_PROJECT_VERSION}
)
message("project ${PROJECT_NAME} is using version ${PROJECT_VERSION}")
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)