diff options
author | Jordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com> | 2021-01-05 22:55:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 22:55:13 +0300 |
commit | e427b02c8983a2f48a05ed481ffe600546b18d56 (patch) | |
tree | 2e4ff993bedada983dd54e6c08114c182d62f43a /tests | |
parent | 25bb4bd9489a28b72a77c016b7ac0c64345a7c88 (diff) |
Reintroduce CMake changes that were reverted in #966 (#967)
* [cmake] Adding options for INSTALL and TEST (#964)
* [cmake] Adding GSL_INSTALL option
Not all consumers of GSL automatically want to have this install logic.
It's good practice to gate install logic behind an option.
For an example look at magic_enum:
https://github.com/Neargye/magic_enum/blob/master/CMakeLists.txt
If the client wants to install GSL they still can. But they should ask
for it by overriding GSL_INSTALL.
* Update cmake/guidelineSupportLibrary.cmake
added nl@eof
* Update CMakeLists.txt
* Update CMakeLists.txt
Co-authored-by: Juan Ramos <juanr0911@gmail.com>
Co-authored-by: Jordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com>
* missing config line restored by moving GNUInstallDirs back to main file
Co-authored-by: hdf89shfdfs <31327577+hdf89shfdfs@users.noreply.github.com>
Co-authored-by: Juan Ramos <juanr0911@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 2e7c2dc..1c7b03e 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -10,6 +10,10 @@ find_package(Git REQUIRED QUIET) # will make visual studio generated project group files set_property(GLOBAL PROPERTY USE_FOLDERS ON) +if(IOS) + add_compile_definitions(GTEST_HAS_DEATH_TEST=1) +endif() + pkg_search_module(GTestMain gtest_main) if (NOT GTestMain_FOUND) configure_file(CMakeLists.txt.in googletest-download/CMakeLists.txt) |