mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
[CMAKE] Add architecture to our build string
This introduces a new CMake variable WINARCH, which what Windows usually uses ("x86" instead of "i386") e.g. in sxs names.
This commit is contained in:
parent
0b0bb1a93b
commit
743c378ed1
2 changed files with 11 additions and 4 deletions
|
@ -9,9 +9,6 @@ include(CMakeDependentOption)
|
|||
|
||||
project(REACTOS)
|
||||
|
||||
# Versioning
|
||||
include(sdk/include/reactos/version.cmake)
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
|
||||
set(CMAKE_SHARED_LIBRARY_PREFIX "")
|
||||
|
@ -32,6 +29,16 @@ endif()
|
|||
# for more information.
|
||||
string(TOLOWER ${ARCH} ARCH)
|
||||
|
||||
# Alternative WinNT-compatible architecture string
|
||||
if(ARCH STREQUAL "i386")
|
||||
set(WINARCH "x86")
|
||||
else()
|
||||
set(WINARCH ${ARCH})
|
||||
endif()
|
||||
|
||||
# Versioning
|
||||
include(sdk/include/reactos/version.cmake)
|
||||
|
||||
# Compile options
|
||||
if(ARCH STREQUAL "i386")
|
||||
include(sdk/cmake/config.cmake)
|
||||
|
|
|
@ -9,7 +9,7 @@ set(COPYRIGHT_YEAR "2020")
|
|||
# or "RC1", "RC2", "" for releases.
|
||||
set(KERNEL_VERSION_BUILD_TYPE "dev")
|
||||
|
||||
set(KERNEL_VERSION "${KERNEL_VERSION_MAJOR}.${KERNEL_VERSION_MINOR}.${KERNEL_VERSION_PATCH_LEVEL}")
|
||||
set(KERNEL_VERSION "${KERNEL_VERSION_MAJOR}.${KERNEL_VERSION_MINOR}.${KERNEL_VERSION_PATCH_LEVEL}-${WINARCH}")
|
||||
if(NOT KERNEL_VERSION_BUILD_TYPE STREQUAL "")
|
||||
set(KERNEL_VERSION "${KERNEL_VERSION}-${KERNEL_VERSION_BUILD_TYPE}")
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue