Skip to content

Commit 0a49ae0

Browse files
authored
Merge pull request anbox#1280 from Firenox89/master
use VERSION_GREATER instead of GREATER to compare the protobuf version
2 parents 91797a4 + 18e95fe commit 0a49ae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ endif()
9494

9595
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DEGL_NO_X11")
9696

97-
if((Protobuf_VERSION GREATER "3.7") OR (Protobuf_VERSION EQUAL "3.7"))
97+
if((Protobuf_VERSION VERSION_GREATER "3.7") OR (Protobuf_VERSION VERSION_EQUAL "3.7"))
9898
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_PROTOBUF_CALLBACK_HEADER")
9999
endif()
100100

0 commit comments

Comments
 (0)