mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
parent
2fc94db3eb
commit
d933e51b8b
@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 3.7)
|
cmake_minimum_required(VERSION 3.1.3)
|
||||||
|
|
||||||
project(GSL CXX)
|
project(GSL CXX)
|
||||||
|
|
||||||
@ -25,7 +25,6 @@ if (CMAKE_VERSION VERSION_LESS 3.7.9)
|
|||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++14 support. Please use a different C++ compiler.")
|
message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++14 support. Please use a different C++ compiler.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
else ()
|
else ()
|
||||||
# set the GSL library to be compiled only with c++14
|
# set the GSL library to be compiled only with c++14
|
||||||
@ -49,6 +48,7 @@ target_include_directories(GSL INTERFACE
|
|||||||
>
|
>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if ((CMAKE_VERSION GREATER 3.7.9) OR (CMAKE_VERSION EQUAL 3.7.9))
|
||||||
if (MSVC_IDE)
|
if (MSVC_IDE)
|
||||||
option(VS_ADD_NATIVE_VISUALIZERS "Configure project to use Visual Studio native visualizers" TRUE)
|
option(VS_ADD_NATIVE_VISUALIZERS "Configure project to use Visual Studio native visualizers" TRUE)
|
||||||
else()
|
else()
|
||||||
@ -61,6 +61,7 @@ if(VS_ADD_NATIVE_VISUALIZERS)
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/GSL.natvis
|
${CMAKE_CURRENT_SOURCE_DIR}/GSL.natvis
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
install(
|
install(
|
||||||
DIRECTORY include/gsl
|
DIRECTORY include/gsl
|
||||||
|
Loading…
Reference in New Issue
Block a user