The OSI flatbuffers build does not run properly with the current CMakeLists.txt because for the osi_version.proto both CMAKE_CURRENT_SOURCE_DIR and CMAKE_CURRENT_BUILD_DIR are added to the path. Only the build directory should be used for osi_version.proto.
Describe how to reproduce the bug
Steps to reproduce the behavior:
CMakeLists.txt (16): Set option(OSI_BUILD_FLATBUFFER "Build flatbuffer versions of libraries" ON)
Try to build OSI
See error:
Convert C:/Users/tsedlmayer/Documents/dev/open-simulation-interface/flatbuild/osi_version.proto to osi_version.fbs using flatc
C:\Users\tsedlmayer\Documents\dev\open-simulation-interface\flatbuild\flatbuffers-build\Release\flatc.exe : error : unable to load file: C:/Users/tsedlmayer/Documents/dev/open-simulation-interface/C:/Users/tsedlmayer/Documents/dev/open-simulation-interface/flatbuild/osi_version.proto
Describe the bug
The OSI flatbuffers build does not run properly with the current CMakeLists.txt because for the osi_version.proto both CMAKE_CURRENT_SOURCE_DIR and CMAKE_CURRENT_BUILD_DIR are added to the path. Only the build directory should be used for osi_version.proto.
Describe how to reproduce the bug
Steps to reproduce the behavior: