|
@@ -63,6 +63,15 @@ set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
|
|
|
|
|
|
+# supported compilers
|
|
|
|
+
|
|
|
|
+if (${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC OR ${CMAKE_CXX_COMPILER_ID} STREQUAL GNU)
|
|
|
|
+ message("${PROJECT_NAME}: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} is supported...")
|
|
|
|
+else()
|
|
|
|
+ message("${PROJECT_NAME}: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} is not supported... terminated!")
|
|
|
|
+ return()
|
|
|
|
+endif ()
|
|
|
|
+
|
|
######################################################
|
|
######################################################
|
|
# Include Directories
|
|
# Include Directories
|
|
######################################################
|
|
######################################################
|