Exclude gtests when cross-compiling

This commit is contained in:
danoloan10
2021-09-29 21:36:21 +02:00
parent 4e9cf0d77f
commit b4d8633bc1
4 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -12,5 +12,7 @@ target_link_libraries(test-database PRIVATE
GTest::GTest
)
gtest_discover_tests(test-database)
if (NOT CMAKE_CROSSCOMPILING)
gtest_discover_tests(test-database)
endif()
+3 -1
View File
@@ -14,5 +14,7 @@ target_link_libraries(test-metadata PRIVATE
GTest::GTest
)
gtest_discover_tests(test-metadata)
if (NOT CMAKE_CROSSCOMPILING)
gtest_discover_tests(test-metadata)
endif()
+3 -1
View File
@@ -9,5 +9,7 @@ target_link_libraries(test-som PRIVATE
GTest::GTest
)
gtest_discover_tests(test-som)
if (NOT CMAKE_CROSSCOMPILING)
gtest_discover_tests(test-som)
endif()
+3 -1
View File
@@ -12,5 +12,7 @@ target_link_libraries(test-utils PRIVATE
GTest::GTest
)
gtest_discover_tests(test-utils)
if (NOT CMAKE_CROSSCOMPILING)
gtest_discover_tests(test-utils)
endif()