Skip to content

Commit 0dc1ff7

Browse files
authored
Add files via upload
1 parent 1b57ce8 commit 0dc1ff7

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
cmake_minimum_required (VERSION 3.10)
2-
project (identity)
32

4-
# Credit: https://stackoverflow.com/questions/52180281/cmake-cxx-compiler-version-is-pointing-to-the-old-gcc-version
5-
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
6-
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.5)
7-
message(FATAL_ERROR "GNU g++ 7.5.0 or later is required. Your current compiler version is: " ${CMAKE_CXX_COMPILER_VERSION})
8-
endif()
9-
else()
10-
message(FATAL_ERROR "Your compiler is currently unsupported: " ${CMAKE_CXX_COMPILER_ID})
11-
endif()
3+
set(CMAKE_CXX_COMPILER g++-7)
4+
5+
project (identity)
126

137
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin)
148
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
@@ -50,4 +44,6 @@ ${CMAKE_SOURCE_DIR}/src/AlignerParallel.h
5044

5145
set (CMAKE_CXX_STANDARD 17)
5246
set (CMAKE_CXX_FLAGS " -O3 -ffast-math -fopenmp -fmessage-length=0")
47+
5348
add_executable(identity ${CMAKE_SOURCE_DIR}/src/Identity.cpp ${SOURCES} ${HEADER_FILES})
49+

0 commit comments

Comments
 (0)