There is misspelling "INSTALL" directive (written NSTALL instead). When i tried
to compile the game i've got this:
Called from: [1] /usr/src/RPM/BUILD/megaglest-source-3.6.0.3/source/glest_map_editor/CMakeLists.txt
CMake Error at source/glest_map_editor/CMakeLists.txt:186 (NSTALL):
Unknown CMake command "NSTALL"
Quick fix:
diff --git a/megaglest/source/glest_map_editor/CMakeLists.txt b/megaglest/source/glest_map_editor/CMakeLists.txt
index 125c257..02b6ae5 100644
--- a/megaglest/source/glest_map_editor/CMakeLists.txt
+++ b/megaglest/source/glest_map_editor/CMakeLists.txt
@@ -183,7 +183,7 @@ IF(NOT CMAKE_INSTALL_PREFIX STREQUAL "")
DESTINATION ${MEGAGLEST_DATA_INSTALL_PATH})
# Installation of the program desktop file
- NSTALL(FILES
+ INSTALL(FILES
"${PROJECT_SOURCE_DIR}/megaglest_editor.desktop"
DESTINATION ${MEGAGLEST_DESKTOP_INSTALL_PATH})
Another interesting moment is when i tried to disable making of
map editor to avoid this error by puttiing -D BUILD_MEGAGLEST_MAP_EDITOR="no" in
megaglest.spec file, i've got this:
Called from: [1] /usr/src/RPM/BUILD/megaglest-source-3.6.0.3/CMakeLists.txt
CMake Error at source/glest_map_editor/CMakeLists.txt:167 (INSTALL):
install TARGETS given target "megaglest_editor" which does not exist in
this directory.