mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-25 13:08:40 +00:00
fix out-of-source builds with cmake (#7946)
This commit is contained in:
@@ -71,7 +71,6 @@ cc_test(
|
||||
],
|
||||
copts = [
|
||||
"-DFLATBUFFERS_TRACK_VERIFIER_BUFFER_SIZE",
|
||||
"-DBAZEL_TEST_DATA_PATH",
|
||||
],
|
||||
data = [
|
||||
":alignment_test.fbs",
|
||||
|
||||
@@ -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