Skip to content

Commit

Permalink
Changed order of Protobuf generation
Browse files Browse the repository at this point in the history
  • Loading branch information
gkrivor committed Nov 27, 2024
1 parent 05508a1 commit 65e4dcc
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/frontends/onnx/onnx_common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ set(OV_ONNX_NAMESPACE openvino_onnx)
file(GLOB_RECURSE LIBRARY_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)
file(GLOB_RECURSE PUBLIC_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/*.hpp)

# Create named folders for the sources within the .vcproj
# Empty name lists them directly under the .vcproj

source_group("src" FILES ${LIBRARY_SRC})
source_group("include" FILES ${PUBLIC_HEADERS} ${PUBLIC_HEADERS})

# Create static library

if(NOT ONNX_FOUND)
message (STATUS "ONNX DBG Generating own onnx headers")
# Generate protobuf file on build time for each '.proto' file in src/proto
Expand All @@ -42,6 +34,12 @@ if(NOT ONNX_FOUND)
endforeach()
endif()

# Create named folders for the sources within the .vcproj
# Empty name lists them directly under the .vcproj
source_group("src" FILES ${LIBRARY_SRC})
source_group("include" FILES ${PUBLIC_HEADERS} ${PUBLIC_HEADERS})

# Create static library
add_library(${TARGET_NAME} STATIC ${LIBRARY_SRC} ${PUBLIC_HEADERS})

set_target_properties(${TARGET_NAME} PROPERTIES
Expand Down

0 comments on commit 65e4dcc

Please sign in to comment.