Jsonifier icon indicating copy to clipboard operation
Jsonifier copied to clipboard

problem with build instructions.

Open ericaslakson opened this issue 6 months ago • 0 comments

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

ericaslakson avatar Apr 22 '25 22:04 ericaslakson