Skip to content

Commit

Permalink
Warn users of TestCPP11 if it runs multiple times (for each subproject).
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Dumusc committed Aug 6, 2015
1 parent 1360176 commit 0a6e17b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TestCPP11.cmake
Expand Up @@ -7,6 +7,11 @@ if(TESTS_CPP11_DONE)
endif()
set(TESTS_CPP11_DONE ON)

if(NOT PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
message(WARNING "For better performance, include TestCPP11 in the top-level "
"project so that it is run only once.")
endif()

set(TESTS_CPP11 sharedptr tuple auto nullptr array final_override unordered_map
template_alias)

Expand Down

0 comments on commit 0a6e17b

Please sign in to comment.