Skip to content

problem with build instructions. #36

@ericaslakson

Description

@ericaslakson

Trying to follow you instructions:

Installation (CMake)

Requirements:
CMake 3.18 or later.
A C++20 or later compiler.
Steps:
Clone this repo into a folder.
Set the installation directory if you wish, using the CMAKE_INSTALL_PREFIX variable in CMakeLists.txt.
Enter the directory in a terminal, and enter cmake -S . --preset=Windows_OR_Linux-Release_OR_Debug.
Enter within the same terminal, cmake --build --preset=Windows_OR_Linux-Release_OR_Debug.
Enter within the same terminal, cmake --install ./Build/Release_OR_Debug.
Now within the CMakeLists.txt of the project you wish to use the library in, set Jsonifier_DIR to wherever you set the CMAKE_INSTALL_PREFIX to, and then use find_package(Jsonifier CONFIG REQUIRED) and then target_link_libraries("${PROJECT_NAME}" PUBLIC/PRIVATE jsonifier::Jsonifier).

Note there is no 'CMAKE_INSTALL_PREFIX' in CmakeLists.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions