mirror of https://github.com/AxioDL/metaforce.git
Fix PLATFORM_NAME being empty by moving the `project` declaration up
This commit is contained in:
parent
cefe6bb232
commit
e375d4ec66
|
@ -58,6 +58,7 @@ if(DEFINED ENV{GITHUB_ENV})
|
||||||
file(APPEND "$ENV{GITHUB_ENV}" "URDE_VERSION=${URDE_WC_DESCRIBE}")
|
file(APPEND "$ENV{GITHUB_ENV}" "URDE_VERSION=${URDE_WC_DESCRIBE}")
|
||||||
endif()
|
endif()
|
||||||
message(STATUS "URDE version set to ${URDE_WC_DESCRIBE}")
|
message(STATUS "URDE version set to ${URDE_WC_DESCRIBE}")
|
||||||
|
project(urde VERSION ${URDE_VERSION_STRING})
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
set(PLATFORM_NAME macos)
|
set(PLATFORM_NAME macos)
|
||||||
|
@ -100,8 +101,6 @@ if(CMAKE_CROSSCOMPILING)
|
||||||
set(HAVE_WORDS_BIGENDIAN_EXITCODE 0 CACHE INTEGER "Makes soxr happy" FORCE)
|
set(HAVE_WORDS_BIGENDIAN_EXITCODE 0 CACHE INTEGER "Makes soxr happy" FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
project(urde VERSION ${URDE_VERSION_STRING})
|
|
||||||
|
|
||||||
# MSVC has a "latest" flag, which always uses the newest standard
|
# MSVC has a "latest" flag, which always uses the newest standard
|
||||||
# when available. GCC and Clang posess no such flag, and must be
|
# when available. GCC and Clang posess no such flag, and must be
|
||||||
# manually enforced. CMake, curiously, also doesn't have a "latest"
|
# manually enforced. CMake, curiously, also doesn't have a "latest"
|
||||||
|
|
Loading…
Reference in New Issue