From 30b946ee85ef427d54469a60559ab8609ebc4091 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Sun, 31 Aug 2014 10:32:25 -0300 Subject: [PATCH] Support out-of-tree builds with cmake This changes the location of msgpack.pc to support out-of-tree builds. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 87906e0f..dcee3f1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -168,7 +168,7 @@ ENDIF () INSTALL (TARGETS msgpack msgpack-static DESTINATION lib) INSTALL (DIRECTORY include DESTINATION ${CMAKE_INSTALL_PREFIX}) -INSTALL (FILES msgpack.pc DESTINATION lib/pkgconfig) +INSTALL (FILES ${CMAKE_BINARY_DIR}/msgpack.pc DESTINATION lib/pkgconfig) # Doxygen FIND_PACKAGE (Doxygen)