mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-09 22:56:27 +00:00
fix out-of-source builds with cmake (#7946)
This commit is contained in:
@@ -1670,12 +1670,7 @@ int FlatBufferTests(const std::string &tests_data_path) {
|
||||
} // namespace flatbuffers
|
||||
|
||||
int main(int argc, const char *argv[]) {
|
||||
std::string tests_data_path =
|
||||
#ifdef BAZEL_TEST_DATA_PATH
|
||||
"../com_github_google_flatbuffers/tests/";
|
||||
#else
|
||||
"tests/";
|
||||
#endif
|
||||
std::string tests_data_path = "tests/";
|
||||
|
||||
for (int argi = 1; argi < argc; argi++) {
|
||||
std::string arg = argv[argi];
|
||||
|
||||
Reference in New Issue
Block a user