Skip to content

Commit

Permalink
设置默认CMAKE_PREFIX_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
171930433 committed Mar 24, 2024
1 parent 74add54 commit d0c8ffa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ project(yaLanTingLibs

# set(SYSROOT_DIR /opt/zhito/sysroot)
# set(CMAKE_PREFIX_PATH "/home/gsk/pro/CyberRT/install")
set(CMAKE_PREFIX_PATH "/home/gsk/pro/ubuntu2204_docker/install")
if(NOT ${CMAKE_PREFIX_PATH})
set(CMAKE_PREFIX_PATH "/home/gsk/pro/ubuntu2204_docker/install")
endif()

find_package(protobuf REQUIRED)

# add_subdirectory(src/protoc-plugin)
add_subdirectory(src/protoc-plugin)

option(BUILD_EXAMPLES OFF)

if(BUILD_EXAMPLES)
add_subdirectory(src/example)
endif()
add_subdirectory(src/example)

0 comments on commit d0c8ffa

Please sign in to comment.