gcontini
2019-11-30 bcdd6d88f7df3212d57eb93024fe5ada502bc49f
cmake < 3.6 fix
2个文件已修改
81 ■■■■ 已修改文件
cmake/Findlcc.cmake 79 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/library/os/os-win.c 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
cmake/Findlcc.cmake
@@ -1,45 +1,44 @@
# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
# Distributed under the OSI-approved BSD 3-Clause License.
#[=======================================================================[.rst:
Findlcc
-------
Find or build the lcc executable.
Imported Targets
^^^^^^^^^^^^^^^^
This module provides the following imported targets, if found:
``license_generator::lcc``
  The lcc executable
If lcc is not found this module will try to download it as a submodule
Git must be installed.
Input variables
^^^^^^^^^^^^^^^^
``LCC_LOCATION`` Hint for locating the lcc executable
Result Variables
^^^^^^^^^^^^^^^^
This will define the following variables:
``LCC_FOUND``
  True if the system has the Foo library.
``lcc_VERSION``
Cache Variables
^^^^^^^^^^^^^^^
The following cache variables will also be set:
``LCC_EXECUTABLE``
  Path to the lcc executable.
#Findlcc
#-------
#
#Find or build the lcc executable.
#
#Imported Targets
#^^^^^^^^^^^^^^^^
#
#This module provides the following imported targets, if found:
#
#``license_generator::lcc``
#  The lcc executable
#
#If lcc is not found this module will try to download it as a submodule
#Git must be installed.
#
#Input variables
#^^^^^^^^^^^^^^^^
#
#``LCC_LOCATION`` Hint for locating the lcc executable
#
#Result Variables
#^^^^^^^^^^^^^^^^
#
#This will define the following variables:
#
#``LCC_FOUND``
#  True if the system has the Foo library.
#``lcc_VERSION``
#
#Cache Variables
#^^^^^^^^^^^^^^^
#
#The following cache variables will also be set:
#
#``LCC_EXECUTABLE``
#  Path to the lcc executable.
#
#]=======================================================================]
set(lcc_names lcc lcc.exe)
src/library/os/os-win.c
@@ -47,7 +47,7 @@
    char szLogicalDrives[MAX_PATH] = { 0 };
    unsigned char buf[8] = "";
    FUNCTION_RETURN return_value;
    FUNCTION_RETURN return_value = FUNC_RET_NOT_AVAIL;
    const DWORD dwResult = GetLogicalDriveStrings(dwSize, szLogicalDrives);
    if (dwResult > 0 && dwResult <= MAX_PATH) {