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 $)