Skip to content

Cannot use cjson with cmake #21115

@uri247

Description

@uri247

Host Environment

  • OS: Windows
  • Compiler: 16.11

To Reproduce
Steps to reproduce the behavior:
./vcpkg.exe install --triplet=x64-windows-static cjson

After you install, you cannot use the CMake.
The reason is that in line 45 there is:
set(_IMPORT_PREFIX "${_IMPORT_PREFIX}")

This is a regression. It means nothing. Any project that users cjson will fail in line 68 (won't be able to find the cjon.lib).

Should be:
set(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../..")

As it used to be before

Metadata

Metadata

Assignees

Labels

category:tool-updateThe issue is with build tool or build script, which requires update or should be executed correctly

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions