Skip to content
Snippets Groups Projects
Commit dd331485 authored by Konstantin Podsvirov's avatar Konstantin Podsvirov
Browse files

CMake: Fix configuration file format bug

parent 13016cc4
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,7 @@ elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package") ...@@ -84,7 +84,7 @@ elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package")
if(TARGET ZLIB::ZLIB) if(TARGET ZLIB::ZLIB)
set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB) set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB)
endif() endif()
set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND) find_package(ZLIB) endif()") set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()")
endif() endif()
if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module") if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module")
...@@ -117,10 +117,10 @@ elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package") ...@@ -117,10 +117,10 @@ elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package")
if(TARGET protobuf::libprotoc) if(TARGET protobuf::libprotoc)
set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc) set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc)
endif() endif()
set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND) find_package(protobuf CONFIG) endif()") set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND)\n find_package(protobuf CONFIG)\nendif()")
else() else()
find_package(Protobuf MODULE) find_package(Protobuf MODULE)
set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND) find_package(Protobuf) endif()") set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND)\n find_package(Protobuf)\nendif()")
endif() endif()
endif() endif()
...@@ -141,7 +141,7 @@ elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package") ...@@ -141,7 +141,7 @@ elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package")
if(TARGET OpenSSL::SSL) if(TARGET OpenSSL::SSL)
set(_gRPC_SSL_LIBRARIES OpenSSL::SSL) set(_gRPC_SSL_LIBRARIES OpenSSL::SSL)
endif() endif()
set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND) find_package(OpenSSL) endif()") set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()")
endif() endif()
if(NOT MSVC) if(NOT MSVC)
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
if(TARGET ZLIB::ZLIB) if(TARGET ZLIB::ZLIB)
set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB) set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB)
endif() endif()
set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND) find_package(ZLIB) endif()") set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()")
endif() endif()
if("<%text>${gRPC_PROTOBUF_PROVIDER}</%text>" STREQUAL "module") if("<%text>${gRPC_PROTOBUF_PROVIDER}</%text>" STREQUAL "module")
...@@ -135,10 +135,10 @@ ...@@ -135,10 +135,10 @@
if(TARGET protobuf::libprotoc) if(TARGET protobuf::libprotoc)
set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc) set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc)
endif() endif()
set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND) find_package(protobuf CONFIG) endif()") set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND)\n find_package(protobuf CONFIG)\nendif()")
else() else()
find_package(Protobuf MODULE) find_package(Protobuf MODULE)
set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND) find_package(Protobuf) endif()") set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND)\n find_package(Protobuf)\nendif()")
endif() endif()
endif() endif()
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
if(TARGET OpenSSL::SSL) if(TARGET OpenSSL::SSL)
set(_gRPC_SSL_LIBRARIES OpenSSL::SSL) set(_gRPC_SSL_LIBRARIES OpenSSL::SSL)
endif() endif()
set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND) find_package(OpenSSL) endif()") set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()")
endif() endif()
if(NOT MSVC) if(NOT MSVC)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment