svkaiser / Doom64EX

Doom64EX is a reverse-engineering project aimed to recreate Doom64 as close as possible with additional modding features.
http://doom64ex.wordpress.com/
GNU General Public License v2.0
237 stars 49 forks source link

Use correct binary path during during install #69

Closed nvllsvm closed 7 years ago

nvllsvm commented 7 years ago

OS: Arch Linux CMake: 3.8.0

When building the engine component, CMAKE_CURRENT_BINARY_DIR is used to set the source path of the doom64ex binary for install. However, the doom64ex binary actually is placed in the project root when building. Thus, trying to install gives this:

Install the project...
-- Install configuration: ""
-- Installing: /usr/local/share/games/doom64ex/doom64ex.pk3
CMake Error at src/engine/cmake_install.cmake:36 (file):
  file INSTALL cannot find
  "/home/draje/Code/GitHub/nvllsvm/Doom64EX/src/engine/doom64ex".
Call Stack (most recent call first):
  cmake_install.cmake:41 (include)

make: *** [Makefile:108: install] Error 1

It should be installing from /home/draje/Code/GitHub/nvllsvm/Doom64EX/doom64ex.

Using CMAKE_BINARY_DIR fixes this.

pinkwah commented 7 years ago

Thanks