Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com>2020-05-08 19:57:45 +0300
committerGitHub <noreply@github.com>2020-05-08 19:57:45 +0300
commit0843ea444fcdf07868214da171c4fa9d244e7472 (patch)
tree6ecf23a92fdda5510e3d2fa5b3e0b7efc2321d32 /CMakeLists.txt
parent839de217079028eaf0c7f39b6a06b499014dabba (diff)
parent1e4e23738c9b70644656aee4ea4fc50a051f7793 (diff)
Merge pull request #884 from dipidoo/master
reflects verification of iOS and Android support
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0cf66f9..2c9f661 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,7 +14,7 @@ add_library(GSL INTERFACE)
# determine whether this is a standalone project or included by other projects
set(GSL_STANDALONE_PROJECT OFF)
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
- set(GSL_STANDALONE_PROJECT ON)
+ set(GSL_STANDALONE_PROJECT ON)
endif ()
set(GSL_CXX_STANDARD "14" CACHE STRING "Use c++ standard")
@@ -109,6 +109,11 @@ add_library(Microsoft.GSL::GSL ALIAS GSL)
option(GSL_TEST "Generate tests." ${GSL_STANDALONE_PROJECT})
if (GSL_TEST)
- enable_testing()
- add_subdirectory(tests)
+ enable_testing()
+ if(IOS)
+ add_compile_definitions(
+ GTEST_HAS_DEATH_TEST=1
+ )
+ endif()
+ add_subdirectory(tests)
endif ()