@@ -35,18 +35,18 @@ func CanCompileObjectBoxCCpp(t *testing.T, repoRoot string, cpp, required bool)
3535
3636 // check objectbox lib
3737 if cpp {
38- err = cmake .LibraryExists ("objectbox" , []string {"objectbox.hpp" }, includeDirs , libDirs )
38+ err = cmake .LibraryExists ("objectbox" , []string {"objectbox.hpp" }, includeDirs , libDirs , [] string { "OBX_CPP_FILE" } )
3939 } else {
40- err = cmake .LibraryExists ("objectbox" , []string {"objectbox.h" }, includeDirs , libDirs )
40+ err = cmake .LibraryExists ("objectbox" , []string {"objectbox.h" }, includeDirs , libDirs , nil )
4141 }
4242 assert .NoErr (t , err )
4343
4444 // check flatbuffers library availability
4545 if cpp {
4646 // Note: we don't need flatbuffers library explicitly, it's part of objectbox at the moment.
47- err = cmake .LibraryExists ("" , []string {"flatbuffers/flatbuffers.h" }, includeDirs , libDirs )
47+ err = cmake .LibraryExists ("" , []string {"flatbuffers/flatbuffers.h" }, includeDirs , libDirs , nil )
4848 } else {
49- err = cmake .LibraryExists ("flatccrt" , []string {"stddef.h" , "flatcc/flatcc.h" , "flatcc/flatcc_builder.h" }, includeDirs , libDirs )
49+ err = cmake .LibraryExists ("flatccrt" , []string {"stddef.h" , "flatcc/flatcc.h" , "flatcc/flatcc_builder.h" }, includeDirs , libDirs , nil )
5050 }
5151
5252 if required {
0 commit comments