mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
CPack/NuGet: Find nuget tool on case sensitive file system
There is no need to use a CamelCase executable name since it will be handled gracefully on Windows anyway. This change allow support for Linux system, in particular Debian distribution where the binary is called `nuget`.
This commit is contained in:
committed by
Brad King
parent
a423194311
commit
8a4732c60e
@@ -276,7 +276,7 @@ function(_cpack_nuget_make_files_tag)
|
|||||||
set(_CPACK_NUGET_FILES_TAG "<files>\n${_files} </files>" PARENT_SCOPE)
|
set(_CPACK_NUGET_FILES_TAG "<files>\n${_files} </files>" PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
find_program(NUGET_EXECUTABLE NuGet)
|
find_program(NUGET_EXECUTABLE nuget)
|
||||||
_cpack_nuget_debug_var(NUGET_EXECUTABLE)
|
_cpack_nuget_debug_var(NUGET_EXECUTABLE)
|
||||||
if(NOT NUGET_EXECUTABLE)
|
if(NOT NUGET_EXECUTABLE)
|
||||||
message(FATAL_ERROR "NuGet executable not found")
|
message(FATAL_ERROR "NuGet executable not found")
|
||||||
|
|||||||
Reference in New Issue
Block a user