Skip to content

CMakeLists.txt: osi_version.proto directory bug for flatbuf build #704

@thomassedlmayer

Description

@thomassedlmayer

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:

  1. CMakeLists.txt (16): Set option(OSI_BUILD_FLATBUFFER "Build flatbuffer versions of libraries" ON)
  2. Try to build OSI
  3. 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

Metadata

Metadata

Assignees

Labels

BugProblems in the build system, build scripts, etc or faults in the interface.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions