diff options
author | Sergiy Oryekhov <sergiyor@microsoft.com> | 2016-03-23 16:53:00 -0700 |
---|---|---|
committer | Sergiy Oryekhov <sergiyor@microsoft.com> | 2016-03-23 16:53:00 -0700 |
commit | 79030c55863d8a98fb67d549c747c9666b4ef2ec (patch) | |
tree | 3adf048b0981d0e01559c4054fb876d1a9c8e73a /tests | |
parent | 32d00796ad530d202dcbdaf817d47a2405b31301 (diff) | |
download | platform_external_Microsoft-GSL-79030c55863d8a98fb67d549c747c9666b4ef2ec.tar.gz platform_external_Microsoft-GSL-79030c55863d8a98fb67d549c747c9666b4ef2ec.tar.bz2 platform_external_Microsoft-GSL-79030c55863d8a98fb67d549c747c9666b4ef2ec.zip |
Moving submodule init before subdirectory.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 66516fe..e6527da 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 2.8.7) project(GSLTests CXX) +if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/unittest-cpp/tests) + execute_process(COMMAND git submodule update --init WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}") +endif() + add_subdirectory(unittest-cpp) include_directories( @@ -28,10 +32,6 @@ else() endif() endif() -if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/unittest-cpp/tests) - execute_process(COMMAND git submodule update --init --recursive WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}") -endif() - function(add_gsl_test name) add_executable(${name} ${name}.cpp ../include/gsl.h ../include/gsl_assert.h ../include/gsl_util.h ../include/span.h ../include/string_span.h) target_link_libraries(${name} UnitTest++) |