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:
committed by
Leland Lucius
parent
e93fdd16c5
commit
79b259851f
@@ -5,6 +5,12 @@
|
|||||||
# generator expressions.
|
# generator expressions.
|
||||||
cmake_minimum_required( VERSION 3.15 )
|
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
|
# Don't allow in-source builds...no real reason, just
|
||||||
# keeping those source trees nice and tidy. :-)
|
# keeping those source trees nice and tidy. :-)
|
||||||
# (This can be removed if it becomes an issue.)
|
# (This can be removed if it becomes an issue.)
|
||||||
|
|||||||
@@ -24,15 +24,6 @@
|
|||||||
#ifndef __AUDACITY_H__
|
#ifndef __AUDACITY_H__
|
||||||
#define __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.
|
// We only do alpha builds, beta builds, and release versions.
|
||||||
// Most of the time we're in development, so AUDACITY_BUILD_LEVEL should be
|
// Most of the time we're in development, so AUDACITY_BUILD_LEVEL should be
|
||||||
// defined to 0.
|
// defined to 0.
|
||||||
|
|||||||
Reference in New Issue
Block a user