]> granicus.if.org Git - taglib/commitdiff
Not generate/install pkgconfig file on windows we can't use it
authorLaurent Montel <montel@kde.org>
Tue, 14 Aug 2007 07:33:36 +0000 (07:33 +0000)
committerLaurent Montel <montel@kde.org>
Tue, 14 Aug 2007 07:33:36 +0000 (07:33 +0000)
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@699889 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

CMakeLists.txt

index 84b5b0dd6d1d472d4cb9784fb0691ed76bc014a1..cc709d1c74fa7f13bc2f9ff3fce92c4e7d037b4e 100644 (file)
@@ -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})