Skip to content

Commit 9365b9c

Browse files
authored
Merge pull request #1042 from I2PC/agm_olz_gccVersion
Forcing GCC >= 9
2 parents c2084cc + 36974e8 commit 9365b9c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ if(NOT DEFINED CMAKE_CXX_STANDARD)
6565
set(CMAKE_CXX_STANDARD_REQUIRED ON)
6666
endif()
6767

68+
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
69+
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
70+
message(FATAL_ERROR "GCC version must be at least 9.0. Found ${CMAKE_CXX_COMPILER_VERSION}")
71+
endif()
72+
else()
73+
message(WARNING "You are not using GCC. Currenlty, we only officially support GCC.")
74+
endif()
75+
6876
# Find Python
6977
find_package(Python3 COMPONENTS Interpreter Development NumPy REQUIRED)
7078
file(APPEND ${XMIPP_VERSIONS_FILE} "Python3=${Python3_VERSION}\n")

0 commit comments

Comments
 (0)