Sfoglia il codice sorgente

Set QT_PROTOBUF_INSTALL to false when it's built as sub-project

Alexey Edelev 3 anni fa
parent
commit
979ccc8d27
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      cmake/QtProtobufInternalHelpers.cmake

+ 1 - 1
cmake/QtProtobufInternalHelpers.cmake

@@ -105,7 +105,7 @@ function(qt_protobuf_internal_check_install)
 
     if(NOT "${QT_PROTOBUF_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
         message(STATUS "QtProtobuf configured as sub-project.")
-        set(QT_PROTOBUF_INSTALL TRUE CACHE INTERNAL "" FORCE)
+        set(QT_PROTOBUF_INSTALL FALSE CACHE INTERNAL "" FORCE)
         message(STATUS "All install rules are disabled.")
     endif()
 endfunction()