Fix PLATFORM_NAME being empty by moving the `project` declaration up

This commit is contained in:
Phillip Stephens 2021-04-02 21:43:34 -07:00
parent cefe6bb232
commit e375d4ec66
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 1 additions and 2 deletions

View File

@ -58,6 +58,7 @@ if(DEFINED ENV{GITHUB_ENV})
file(APPEND "$ENV{GITHUB_ENV}" "URDE_VERSION=${URDE_WC_DESCRIBE}")
endif()
message(STATUS "URDE version set to ${URDE_WC_DESCRIBE}")
project(urde VERSION ${URDE_VERSION_STRING})
if (APPLE)
set(PLATFORM_NAME macos)
@ -100,8 +101,6 @@ if(CMAKE_CROSSCOMPILING)
set(HAVE_WORDS_BIGENDIAN_EXITCODE 0 CACHE INTEGER "Makes soxr happy" FORCE)
endif()
project(urde VERSION ${URDE_VERSION_STRING})
# MSVC has a "latest" flag, which always uses the newest standard
# when available. GCC and Clang posess no such flag, and must be
# manually enforced. CMake, curiously, also doesn't have a "latest"