From 0eb8e9da08284451ed583f0616dace4d8ec8c495 Mon Sep 17 00:00:00 2001 From: Chow Loong Jin Date: Thu, 24 May 2012 02:44:19 +0800 Subject: [PATCH] Fix out of source installation with tinyxml2.pc --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 491611b..df2536e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,6 +80,6 @@ foreach(p LIB INCLUDE) endforeach() configure_file(tinyxml2.pc.in tinyxml2.pc @ONLY) -install(FILES tinyxml2.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/tinyxml2.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) #add_test(test ${SAMPLE_NAME} COMMAND $)