Browse Source

Fix path to 3rdparty in main CMakeLists

- Make path to protobuf 3rdparty raltive to upper
  protbuf directory, to fix all-in-one build as
  subproject
Tatyana Borisova 5 years ago
parent
commit
4f931e86fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -16,7 +16,7 @@ if(Qt5Core_VERSION VERSION_LESS "5.12.3")
     message(FATAL_ERROR "Required Qt version is 5.12.3+")
 endif()
 
-if(EXISTS "${CMAKE_SOURCE_DIR}/3rdparty/grpc/CMakeLists.txt")
+if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/grpc/CMakeLists.txt")
     message(STATUS "Found local gRPC sources directory. Perform all-in-one build")
     set(gRPC_BUILD_TESTS FALSE)
     set(protobuf_BUILD_TESTS FALSE)