Browse Source

Version check on gcc compiler moved to CMakeLists.txt

pull/2/head
Paul Licameli 1 year ago
committed by Leland Lucius
parent
commit
79b259851f
  1. 6
      CMakeLists.txt
  2. 9
      src/Audacity.h

6
CMakeLists.txt

@ -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.)

9
src/Audacity.h

@ -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.

Loading…
Cancel
Save