aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Erwin Jansen <jansene@google.com>2018-11-27 17:04:53 -0800
committerGravatar Erwin Jansen <jansene@google.com>2018-11-27 17:04:53 -0800
commit513c172119ac41a3dc52738db5bf649195fa5c64 (patch)
treeae95f7228eb234a51ae74eca1089ab2ea66f7ed7
parent500945dd1316fcebb6d2fc6ec22019988b8ce6d2 (diff)
Explicitly set ctest command.
Some generators have trouble finding base_test if this project is included as a subproject. Explicitly setting the test name and executable command will fix this issue.
-rw-r--r--src/base/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/CMakeLists.txt b/src/base/CMakeLists.txt
index 2cd27ae..5a45f85 100644
--- a/src/base/CMakeLists.txt
+++ b/src/base/CMakeLists.txt
@@ -23,5 +23,5 @@ if(OPTION_ASTC_TESTS)
test/type_traits_test.cpp
test/uint128_test.cpp)
target_link_libraries(base_test base gmock_main)
- add_test(base_test base_test)
+ add_test(NAME base_test COMMAND base_test WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
endif()