/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk-artifacts
cmake/FixWindowsPath.cmake
30 строк
1001 B
Dmitry Babokin
Remove the phrase "All rights reserved."
01 апр 2023, 03:48
01 апр 2023, 03:48
33bd2b4
Код
Авторство
О чём код?
# # Copyright (c) 2018-2023, Intel Corporation # # SPDX-License-Identifier: BSD-3-Clause # # ispc FixWindowsPath.cmake # if (WIN32) find_program(CYGPATH_EXECUTABLE cygpath PATHS ${CYGWIN_INSTALL_PATH}/bin) if (NOT CYGPATH_EXECUTABLE) message(WARNING "Failed to find cygpath" ) endif() # To avoid cygwin warnings about dos-style path during VS build function (win_path_to_cygwin inPath execPath outPath) set(cygwinPath ${inPath}) # Need to update path only if tool was installed as cygwin package if (${execPath} MATCHES ".*cygwin.*") if (${CMAKE_GENERATOR} MATCHES "Visual Studio*") execute_process( COMMAND ${CYGPATH_EXECUTABLE} -u ${inPath} OUTPUT_VARIABLE cygwinPath ) string(STRIP "${cygwinPath}" cygwinPath) endif() endif() set(${outPath} ${cygwinPath} PARENT_SCOPE) endfunction() endif()