diff -up ./CMakeLists.txt.orig ./CMakeLists.txt --- ./CMakeLists.txt.orig 2013-07-22 17:03:46.468151019 +0000 +++ ./CMakeLists.txt 2013-07-22 17:04:32.772078189 +0000 @@ -407,8 +407,8 @@ add_subdirectory ( doc ) # pkg-config support set ( prefix "${CMAKE_INSTALL_PREFIX}" ) set ( exec_prefix "\${prefix}" ) -set ( libdir "\${exec_prefix}/${LIB_INSTALL_DIR}${LIB_SUFFIX}" ) -set ( includedir "\${prefix}/${INCLUDE_INSTALL_DIR}" ) +set ( libdir "${LIB_INSTALL_DIR}${LIB_SUFFIX}" ) +set ( includedir "${INCLUDE_INSTALL_DIR}" ) configure_file ( fluidsynth.pc.in ${CMAKE_BINARY_DIR}/fluidsynth.pc IMMEDIATE @ONLY ) install ( FILES ${CMAKE_BINARY_DIR}/fluidsynth.pc