From a1af7d6c8a93148d30f1d4af6b56aa733d777983 Mon Sep 17 00:00:00 2001 From: Nikolaj Pedersen Date: Tue, 30 May 2017 20:17:46 +0200 Subject: [PATCH] CMake: Don't assume the install path will be /usr/local, use CMAKE_INSTALL_PREFIX instead. --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 27ba1554..52f6a574 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 2.8.11) SET(PROJECT_WX melonDS) PROJECT(${PROJECT_WX}) -SET(INSTALL_PATH /usr/local/bin/) SET(SOURCES src/wx/main.cpp @@ -44,4 +43,4 @@ link_libraries(${SDL2_LIBRARIES}) add_executable(${PROJECT_WX} ${SOURCES}) target_link_libraries(${PROJECT_WX}) -install(TARGETS ${PROJECT_WX} DESTINATION ${INSTALL_PATH}) \ No newline at end of file +install(TARGETS ${PROJECT_WX} RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)