Skip to content

Commit f2566d5

Browse files
Googlera-maurice
authored andcommitted
Fix Darwin build.
CMake doesn't have a `MACOS` variable (see the full list here: https://cmake.org/cmake/help/latest/manual/cmake-variables.7.html#variables-that-describe-the-system). The easiest workaround is to simply assume that if the operating system is an Apple one but not iOS, it must be MacOS. If finer distinction is necessary, `CMAKE_SYSTEM_NAME` value can be used (https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_NAME.html#variable:CMAKE_SYSTEM_NAME). The breakage was introduced by cr/289100860. PiperOrigin-RevId: 289516285
1 parent ece5ab5 commit f2566d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release_build_files/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if(ANDROID)
3131
elseif(APPLE)
3232
if(IOS)
3333
set(FIREBASE_SDK_LIBDIR ${FIREBASE_CPP_SDK_DIR}/libs/ios/universal)
34-
elseif(MACOS)
34+
else() #Assume MacOS
3535
set(FIREBASE_SDK_LIBDIR ${FIREBASE_CPP_SDK_DIR}/libs/darwin/universal)
3636
endif()
3737
elseif(MSVC)

0 commit comments

Comments
 (0)