23 lines
564 B
Diff
23 lines
564 B
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 8429585..94f80aa 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -148,6 +148,9 @@ if(NOT DEFINED CDOGS_DATA_DIR)
|
||
|
endif()
|
||
|
endif()
|
||
|
message("Data dir is ${CDOGS_DATA_DIR}")
|
||
|
+if(NOT DEFINED DATA_INSTALL_DIR)
|
||
|
+ set(DATA_INSTALL_DIR "${CDOGS_DATA_DIR}")
|
||
|
+endif()
|
||
|
if(WIN32)
|
||
|
set(CDOGS_CFG_DIR "C-Dogs SDL/")
|
||
|
else()
|
||
|
@@ -200,7 +203,6 @@ elseif(APPLE)
|
||
|
set(INSTALL_PREFIX "cdogs-sdl")
|
||
|
else()
|
||
|
set(LIB_EXTENSION ".so")
|
||
|
- set(DATA_INSTALL_DIR ".")
|
||
|
endif()
|
||
|
|
||
|
# Since Debian wants games binaries in /usr/games
|