From e375d4ec667448be6e6567ce6ec5e12ce1431385 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Fri, 2 Apr 2021 21:43:34 -0700 Subject: [PATCH] Fix PLATFORM_NAME being empty by moving the `project` declaration up --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 99f9178b6..a5dabcd11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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"