When I try to use cmake on jsonCPP I get the following error I use the command from readme:
CMake error On lib_json / CMakeLists.txt: 73 (Instal): Targeted static library target given a collection destination for the target "jsoncpp_lib_static"
cmake -DCMAKE_BUILD_TYPE = debug -DJSONCPP_LIB_BUILD_STATIC = on -DJSONCPP_LIB_BUILD_SHARED = G. "Unix Makefiles" ../ ..
Friday, 15 June 2012
Error with cmake and jsonCPP static library target "jsoncpp_lib_static" -
After
error, it's like you're pointing CMake inside CMakeLists.txt look".
Defines the variable ARCHIVE_INSTALL_DIR
on CMakeLists.txt and it's the goal.
is used in "/jsoncpp/src/lib_json/CemakeLists.txt" because you are leaving the root CMakeLists.txt, so this variable never sets.
The path lib_js is mentioned in the error message at / CMakeLists.txt: 73
, and this is relative to the "main" CMakeLists.txt - that is what you used to execute it for the first time Had told the seamke on that, had done it. Then CMake thinks that the root "jsoncpp / src" is instead of the real root.
Actually, to fix your error, clean your construction folder then re-run the CMake to point to the "/ jsoncpp" folder.
By the way, though docs do not specifically mention this, I think this is case-sensitive. You must do
-DCMAKE_BUILD_TYPE = debug
.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment