Author Topic: [fixed] r3171: Problems with source/glest_map_editor/CMakeLists.txt  (Read 723 times)

Andrew Clark

  • Guest
There is misspelling "INSTALL" directive (written NSTALL instead).  When i tried
to compile the game i've got this:
Quote
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:
Code: [Select]
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:
Quote
   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.
« Last Edit: 27 March 2012, 04:04:49 by softcoder »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: r3171: Problems with source/glest_map_editor/CMakeLists.txt
« Reply #1 on: 24 March 2012, 18:31:00 »
Thanks, these are now fixed in svn.