]> granicus.if.org Git - taglib/commitdiff
Don't install pkg-config files when building a framework
authorLukáš Lalinský <lalinsky@gmail.com>
Sun, 8 May 2011 13:50:44 +0000 (15:50 +0200)
committerLukáš Lalinský <lalinsky@gmail.com>
Sun, 8 May 2011 13:50:44 +0000 (15:50 +0200)
CMakeLists.txt
bindings/c/CMakeLists.txt

index 2a0992ba85dffb02f25e948b1942164261f7b66b..928a3f5eca33ec9f1d88ca621be0af5e9cd88478 100644 (file)
@@ -54,7 +54,7 @@ include(ConfigureChecks.cmake)
 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/taglib-config.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib-config )
 install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/taglib-config DESTINATION ${BIN_INSTALL_DIR})
 
-if(NOT WIN32)
+if(NOT WIN32 AND NOT BUILD_FRAMEWORK)
   configure_file(${CMAKE_CURRENT_SOURCE_DIR}/taglib.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib.pc )
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/taglib.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 endif()
index d6f19855f44c0e01c79c788e2d91eb531b1e32c5..63dc84b8b1d75404f5e55ea12468654b9ed82ed5 100644 (file)
@@ -16,8 +16,6 @@ include_directories(
   ${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/trueaudio
 )
 
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/taglib_c.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib_c.pc)
-
 set(tag_c_HDRS tag_c.h)
 
 if(ENABLE_STATIC)
@@ -68,5 +66,8 @@ install(TARGETS tag_c
        PUBLIC_HEADER DESTINATION ${INCLUDE_INSTALL_DIR}/taglib
 )
 
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/taglib_c.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+if(NOT WIN32 AND NOT BUILD_FRAMEWORK)
+       configure_file(${CMAKE_CURRENT_SOURCE_DIR}/taglib_c.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib_c.pc)
+       install(FILES ${CMAKE_CURRENT_BINARY_DIR}/taglib_c.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+endif()