Skip to content

[build] wrong syntax in nuget.cmake #237

@syriku

Description

@syriku

in cmake/nuget.cmake line 114

  ${CMAKE_BINARY_DIR}/${NUGET_PACKAGE}.${NUGET_PACKAGE_VERSION})
  set(NUGET_PACKAGE_INSTALL_ROOT ${NUGET_PACKAGE_INSTALL_ROOT} PARENT_SCOPE)

  string(REPLACE "\n" ";" LINES ${NUGET_INSTALL_OUTPUT})
  foreach(LINE ${LINES})
    string(FIND "${LINE}" "Successfully installed" installed_index)
    string(FIND "${LINE

got error CMake Error at cmake/nuget.cmake:114 (string): string sub-command REPLACE requires at least four arguments.

it should be string(REPLACE "\n" ";" LINES "${NUGET_INSTALL_OUTPUT}") (with quotes around variable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions