Skip to content

Commit 60282f4

Browse files
Googlera-maurice
authored andcommitted
Fix incorrect string comparison in Firebase C++ SDK's CMakeLists.txt file.
Strings should be compared using `STREQUAL`, not `EQUAL`, because the latter expects the string to represent a number. Without the fix, the condition always fails and chooses `DEBUG`. PiperOrigin-RevId: 285505285
1 parent a6ff884 commit 60282f4

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
@@ -36,7 +36,7 @@ elseif(MSVC)
3636
else()
3737
set(MSVC_CPU x86)
3838
endif()
39-
if(CMAKE_BUILD_TYPE EQUAL Release)
39+
if(CMAKE_BUILD_TYPE STREQUAL Release)
4040
set(MSVC_CONFIG Release)
4141
else()
4242
set(MSVC_CONFIG Debug)

0 commit comments

Comments
 (0)