share/hedgewars/Data/misc/CMakeLists.txt
changeset 7811 49ab679cb384
parent 4083 830d1f4eb517
child 8316 89232b2fa1d6
--- a/share/hedgewars/Data/misc/CMakeLists.txt	Wed Oct 24 10:18:42 2012 +0100
+++ b/share/hedgewars/Data/misc/CMakeLists.txt	Wed Oct 24 10:23:37 2012 +0100
@@ -1,9 +1,13 @@
-if(DEFINED DATA_INSTALL_DIR)                                                                                                            
-    set(HEDGEWARS_DATADIR ${DATA_INSTALL_DIR})                                                                                          
-else()                                                                                                                                  
-    set(HEDGEWARS_DATADIR ${CMAKE_INSTALL_PREFIX}/share/)                                                                               
+if(DEFINED DATA_INSTALL_DIR)
+    set(HEDGEWARS_DATADIR ${DATA_INSTALL_DIR}
+)
+else()
+    set(HEDGEWARS_DATADIR ${CMAKE_INSTALL_PREFIX}/share/)
 endif()  
+
+if(UNIX AND NOT APPLE)
 configure_file(hwengine.desktop.in hwengine.desktop)
+endif()
 
 file(GLOB miscfiles *.xml *.desktop)