oops, forgot that data absolute path only applies to linux
authorkoda
Thu, 27 Dec 2012 15:56:02 +0100
changeset 8335 bc948db1273a
parent 8333 416cb5e5a405
child 8337 bf237f7f1d94
oops, forgot that data absolute path only applies to linux
QTfrontend/CMakeLists.txt
--- a/QTfrontend/CMakeLists.txt	Thu Dec 27 15:32:48 2012 +0100
+++ b/QTfrontend/CMakeLists.txt	Thu Dec 27 15:56:02 2012 +0100
@@ -41,9 +41,9 @@
     include_directories("/usr/local/include")
 endif(UNIX)
 
-#directory for resources, relative to bindir unless absolute path is used
+#directory for resources, relative to bindir (on linux an absolute path is always used)
 string(FIND "${SHAREPATH}" "/" sharepath_is_absolute)
-if(${sharepath_is_absolute} EQUAL 0)
+if(APPLE OR WIN32 OR ${sharepath_is_absolute} EQUAL 0)
     set(HEDGEWARS_DATADIR ${SHAREPATH})
 else()
     set(HEDGEWARS_DATADIR ${CMAKE_INSTALL_PREFIX}/${SHAREPATH})