1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 09:20:16 +01:00

Version check on gcc compiler moved to CMakeLists.txt

This commit is contained in:
Paul Licameli
2021-04-30 03:14:02 -04:00
committed by Leland Lucius
parent e93fdd16c5
commit 79b259851f
2 changed files with 6 additions and 9 deletions

View File

@@ -5,6 +5,12 @@
# generator expressions.
cmake_minimum_required( VERSION 3.15 )
# If building with GNU compiler, then must be 4.9 or later.
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND
CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9")
message(FATAL_ERROR "Audacity requires at least GCC 4.9")
endif ()
# Don't allow in-source builds...no real reason, just
# keeping those source trees nice and tidy. :-)
# (This can be removed if it becomes an issue.)

View File

@@ -24,15 +24,6 @@
#ifndef __AUDACITY_H__
#define __AUDACITY_H__
// If building with GNU compiler, then must be 4.9 or later.
// TODO: This would be much nicer as a standalone test in configure.ac
#if !defined(__APPLE__) && !defined(__clang__) && \
defined __GNUC__ && ( __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9))
#error Audacity requires at least GCC 4.9
#endif
// We only do alpha builds, beta builds, and release versions.
// Most of the time we're in development, so AUDACITY_BUILD_LEVEL should be
// defined to 0.