Limit batch file creating to windows
authorRalf Habacker <ralf.habacker@freenet.de>
Sat, 2 Jul 2011 22:54:20 +0000 (00:54 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Thu, 22 Sep 2011 18:27:58 +0000 (20:27 +0200)
cherry-picked 84b03cae585274bfe54e2a234dff72469cef581d

cmake/CMakeLists.txt

index 54a10e6..62f2e2a 100644 (file)
@@ -503,8 +503,12 @@ set (DBUS_INTERNAL_LIBRARY_DEFINITIONS "-DDBUS_STATIC_BUILD")
 set (DBUS_INTERNAL_CLIENT_DEFINITIONS "-DDBUS_STATIC_BUILD")
 
 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
+
+if (WIN32)
 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dbus-env.bat.cmake ${CMAKE_BINARY_DIR}/bin/dbus-env.bat )
 install_files(/bin FILES ${CMAKE_BINARY_DIR}/bin/dbus-env.bat)
+endif()
+
 add_definitions(-DHAVE_CONFIG_H=1)
 
 ########### subdirs ###############