Explorar o código

overrides the default CMAKE_INSTALL_PREFIX
it was causing sdl2 INSTALL to attempt to output to C:/Program Files (x86)/<projectName>/lib windows side, and /usr/local/lib on linux

Azaezel %!s(int64=10) %!d(string=hai) anos
pai
achega
aa0793de47
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      CMakeLists.txt

+ 2 - 0
CMakeLists.txt

@@ -2,6 +2,8 @@ cmake_minimum_required (VERSION 2.8.12)
 
 set(TORQUE_APP_NAME "" CACHE STRING "the app name")
 
+set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/temp" CACHE PATH "default install path" FORCE )
+
 if("${TORQUE_APP_NAME}" STREQUAL "")
 	message(FATAL_ERROR "Please set TORQUE_APP_NAME first")
 endif()