mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-17 11:05:05 +02:00
Fixed out of source cmake builds to work correctly.
The out of source cmake build was not working correctly. In particular, the main CMakeLists.txt was not installing from the correct location. In the case of msgpack.pc, it was trying to install from the top repo directory instead of from the cmake build directory. So you can now build as follows: $ cd msgpack-c $ mkdir build $ cd build $ cmake ../ $ make $ make install
This commit is contained in:
@@ -158,7 +158,7 @@ ENDIF ()
|
||||
INSTALL (TARGETS msgpack msgpack-static DESTINATION lib)
|
||||
INSTALL (DIRECTORY src/msgpack DESTINATION include)
|
||||
INSTALL (FILES src/msgpack.h src/msgpack.hpp DESTINATION include)
|
||||
INSTALL (FILES msgpack.pc DESTINATION lib/pkgconfig)
|
||||
INSTALL (FILES ${CMAKE_CURRENT_BINARY_DIR}/msgpack.pc DESTINATION lib/pkgconfig)
|
||||
|
||||
# Doxygen
|
||||
FIND_PACKAGE (Doxygen)
|
||||
|
Reference in New Issue
Block a user