mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 11:11:39 +08:00
5b42adda63
* [grppi] Add new port * Update the version
45 lines
1.9 KiB
Diff
45 lines
1.9 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 09f1f9b..e7b562b 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -20,22 +20,19 @@ if ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" )
|
|
if(NOT(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 3.9.0))
|
|
message(FATAL_ERROR "Clang version " ${CMAKE_CXX_COMPILER_VERSION}
|
|
" not supported. Upgrade to 3.9 or above.")
|
|
- else()
|
|
- message( STATUS "C++ Compiler is Clang" )
|
|
endif()
|
|
elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
|
|
if(NOT(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 6.0))
|
|
message(FATAL_ERROR "g++ version " ${CMAKE_CXX_COMPILER_VERSION}
|
|
" not supported. Upgrade to 6.0 or above.")
|
|
else()
|
|
- message( STATUS "C++ Compiler is GNU")
|
|
if (${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 7.0)
|
|
#g++ 7 warns in non C++17 for over-aligned new otherwise
|
|
add_compile_options(-faligned-new)
|
|
endif()
|
|
endif()
|
|
elseif ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel" )
|
|
- message(FATAL_ERROR "Intel compiler is not currently supported")
|
|
+ message(WARNING "Intel compiler is not currently supported")
|
|
# if(NOT(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 16.0))
|
|
# message( FATAL_ERROR "Intel version " ${CMAKE_CXX_COMPILER_VERSION}
|
|
# " not supported. Upgrade to 16.0 or above.")
|
|
@@ -43,12 +40,11 @@ elseif ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel" )
|
|
# message( STATUS "C++ Compiler is Intel" )
|
|
# message( WARNING "WARNING: GrPPI has not been fully tested with Intel compiler." )
|
|
# endif()
|
|
-else()
|
|
- message( FATAL_ERROR "Unsupported compiler: "
|
|
- ${CMAKE_CXX_COMPILER_ID}
|
|
- ${CMAKE_CXX_COMPILER_VERSION})
|
|
endif()
|
|
|
|
+message(STATUS "C++ Compiler is " ${CMAKE_CXX_COMPILER_ID}
|
|
+ " version " ${CMAKE_CXX_COMPILER_VERSION})
|
|
+
|
|
# GrPPI library
|
|
include_directories("${CMAKE_SOURCE_DIR}/include")
|
|
|