Skip to content

Commit

Permalink
Better CMake 2.6 support
Browse files Browse the repository at this point in the history
I guess the default output directory for configure_file in 2.6 is the
root, not the current binary directory.
  • Loading branch information
Douglas Creager committed Dec 14, 2012
1 parent 39a7231 commit 7d66801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ install(TARGETS libappname DESTINATION lib)
# Generate the pkg-config file

set(prefix ${CMAKE_INSTALL_PREFIX})
configure_file(appname.pc.in appname.pc @ONLY)
configure_file(appname.pc.in ${CMAKE_CURRENT_BINARY_DIR}/appname.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/appname.pc
DESTINATION lib/pkgconfig)

0 comments on commit 7d66801

Please sign in to comment.