From: Laurent Montel Date: Tue, 14 Aug 2007 07:33:36 +0000 (+0000) Subject: Not generate/install pkgconfig file on windows we can't use it X-Git-Tag: v1.5~115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecc430e6f5c90de5b6e8623abbf167e73952d6f0;p=taglib Not generate/install pkgconfig file on windows we can't use it git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@699889 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 84b5b0dd..cc709d1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,8 +27,11 @@ include(ConfigureChecks.cmake) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/taglib-config.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib-config ) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/taglib.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib.pc ) -#For the future rename it as config-taglib.h -configure_file(config-taglib.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h ) + +if(NOT WIN32) + #For the future rename it as config-taglib.h + configure_file(config-taglib.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h ) +endif(NOT WIN32) ADD_SUBDIRECTORY( taglib ) @@ -36,8 +39,10 @@ ADD_SUBDIRECTORY(tests) ADD_SUBDIRECTORY(examples) ADD_SUBDIRECTORY(bindings) +if(NOT WIN32) + INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/taglib.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig ) +endif(NOT WIN32) -INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/taglib.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig ) INSTALL( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/taglib-config DESTINATION ${BIN_INSTALL_DIR})