Skip to content

Commit 0907378

Browse files
globberwopspmai
authored andcommitted
#550 Configure osi_version.proto.in in binary dir
Signed-off-by: Martin Stump <11492152+globberwops@users.noreply.github.com>
1 parent c756766 commit 0907378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ set(OSI_INSTALL_CMAKE_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH "Installation dire
5151
set(OSI_INSTALL_LIB_DIR ${OSI_INSTALL_LIB_DIR}/osi${VERSION_MAJOR})
5252
set(OSI_INSTALL_INCLUDE_DIR ${OSI_INSTALL_INCLUDE_DIR}/osi${VERSION_MAJOR})
5353

54-
configure_file(osi_version.proto.in ${CMAKE_CURRENT_SOURCE_DIR}/osi_version.proto)
54+
configure_file(osi_version.proto.in osi_version.proto)
5555

5656
find_package(Protobuf 2.6.1 REQUIRED)
5757
set(PROTOBUF_IMPORT_DIRS ${PROTOBUF_INCLUDE_DIRS})
5858

5959
set(OSI_PROTO_FILES
60-
osi_version.proto
60+
${CMAKE_CURRENT_BINARY_DIR}/osi_version.proto
6161
osi_common.proto
6262
osi_datarecording.proto
6363
osi_detectedtrafficsign.proto

0 commit comments

Comments
 (0)