Skip to content

Commit

Permalink
Now with the intended code.
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Jul 8, 2023
1 parent 1d7cf0b commit f2a6d4e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ include_directories(src)

add_subdirectory(third_party)

# find_package(absl REQUIRED) include_directories(${ABSL_INCLUDE_DIRS})
find_package(Protobuf QUIET CONFIG)
if(NOT ${Protobuf_FOUND})
find_package(absl REQUIRED)
include_directories(${absl_INCLUDE_DIRS})

find_package(Protobuf REQUIRED CONFIG)
# include_directories(${PROTOBUF_INCLUDE_DIRS})

message(STATUS "include dirs are ${Protobuf_INCLUDE_DIRS}")
message(STATUS "include dirs are ${PROTOBUF_INCLUDE_DIRS}")
find_package(Protobuf REQUIRED)
include_directories(${Protobuf_INCLUDE_DIRS})
endif()

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules")
include(BuildUtils)
Expand Down

0 comments on commit f2a6d4e

Please sign in to comment.