Skip to content

Commit 0fd36a5

Browse files
Googlera-maurice
Googler
authored andcommitted
If the user doesn't specify the SDK directory for Firebase, we now infer it from the location of this CMakeLists.txt file.
PiperOrigin-RevId: 251902054
1 parent a5f6a24 commit 0fd36a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

release_build_files/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ cmake_minimum_required(VERSION 3.1)
1818

1919
include(FindPkgConfig)
2020

21+
if (NOT DEFINED FIREBASE_CPP_SDK_DIR)
22+
set(FIREBASE_CPP_SDK_DIR ${CMAKE_CURRENT_SOURCE_DIR})
23+
endif ()
24+
2125
# Determine the location of the libraries to use based on the platform.
2226
if(ANDROID)
2327
string(REPLACE "_" ";" SPLIT_STL ${ANDROID_STL})

0 commit comments

Comments
 (0)