mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2024-12-02 02:05:41 +00:00
Hide the cmake warning from gtest.
Really gtest, sort it out already!
This commit is contained in:
parent
17689af906
commit
a355e85c65
1 changed files with 12 additions and 0 deletions
|
@ -177,7 +177,19 @@ endif()
|
||||||
|
|
||||||
#Tests
|
#Tests
|
||||||
if (BUILD_TESTING)
|
if (BUILD_TESTING)
|
||||||
|
set(TMP_PROJECT_VERSION "${PROJECT_VERSION}")
|
||||||
|
set(TMP_PROJECT_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}")
|
||||||
|
set(TMP_PROJECT_VERSION_MINOR "${PROJECT_VERSION_MINOR}")
|
||||||
|
set(TMP_PROJECT_VERSION_PATCH "${PROJECT_VERSION_PATCH}")
|
||||||
|
unset(PROJECT_VERSION)
|
||||||
|
unset(PROJECT_VERSION_MAJOR)
|
||||||
|
unset(PROJECT_VERSION_MINOR)
|
||||||
|
unset(PROJECT_VERSION_PATCH)
|
||||||
add_shared_git_project(test/gtest)
|
add_shared_git_project(test/gtest)
|
||||||
|
set(PROJECT_VERSION "${TMP_PROJECT_VERSION}")
|
||||||
|
set(PROJECT_VERSION_MAJOR "${TMP_PROJECT_VERSION_MAJOR}")
|
||||||
|
set(PROJECT_VERSION_MINOR "${TMP_PROJECT_VERSION_MINOR}")
|
||||||
|
set(PROJECT_VERSION_PATCH "${TMP_PROJECT_VERSION_PATCH}")
|
||||||
add_subdirectory(test/unit)
|
add_subdirectory(test/unit)
|
||||||
add_subdirectory(test/unit_cli)
|
add_subdirectory(test/unit_cli)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue