|
|
|
|
120
|
include(CheckCXXCompilerFlag)
|
120
|
include(CheckCXXCompilerFlag)
|
121
|
CHECK_CXX_COMPILER_FLAG(-std=c++11 COMPILER_SUPPORTS_CXX11)
|
121
|
CHECK_CXX_COMPILER_FLAG(-std=c++11 COMPILER_SUPPORTS_CXX11)
|
122
|
CHECK_CXX_COMPILER_FLAG(-std=c++0x COMPILER_SUPPORTS_CXX0X)
|
122
|
CHECK_CXX_COMPILER_FLAG(-std=c++0x COMPILER_SUPPORTS_CXX0X)
|
|
|
123
|
+CHECK_CXX_COMPILER_FLAG(-fopenmp COMPILER_SUPPORTS_OPENMP)
|
123
|
if(COMPILER_SUPPORTS_CXX11)
|
124
|
if(COMPILER_SUPPORTS_CXX11)
|
124
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
125
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
125
|
elseif(COMPILER_SUPPORTS_CXX0X)
|
126
|
elseif(COMPILER_SUPPORTS_CXX0X)
|
|
|
|
|
128
|
message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
|
129
|
message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
|
129
|
endif()
|
130
|
endif()
|
130
|
|
131
|
|
|
|
132
|
+if(COMPILER_SUPPORTS_OPENMP)
|
|
|
133
|
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
|
|
|
134
|
+endif()
|
|
|
135
|
+
|
131
|
set(LEMMA_VERSION_MAJOR "0")
|
136
|
set(LEMMA_VERSION_MAJOR "0")
|
132
|
set(LEMMA_VERSION_MINOR "0")
|
137
|
set(LEMMA_VERSION_MINOR "0")
|
133
|
set(LEMMA_VERSION_PATCH "1")
|
138
|
set(LEMMA_VERSION_PATCH "1")
|