CMake Error when linking firebase-cpp-sdk in desktop application

  abseil, c++, cmake, firebase

I am trying to add firebase-cpp-sdk in my desktop app project which uses CMake.

In my CMakeLists.txt I have this line:

add_subdirectory("${PROJECT_SOURCE_DIR}/firebase-cpp-sdk")

but when I run cmake I am getting error:

CMake Error at

firebase-cpp-sdk/external/src/firestore-build/external/src/abseil-cpp/CMake/AbseilHelpers.cmake:178 (message):
Invalid build type: static

Call Stack (most recent call first):

firebase-cpp-sdk/external/src/firestore-build/external/src/abseil-cpp/absl/base/CMakeLists.txt:42 (absl_cc_library)

Any suggestion what to try in order to fix this problem with abseil?

Source: Windows Questions C++

LEAVE A COMMENT