From 88b2b1a40434e86162fe4ff83808a44e45182092 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sat, 29 Aug 2015 10:38:15 +0200 Subject: [PATCH] CMakeLists now works with -DCMAKE_INSTALL_PREFIX to install on all platforms. --- CMakeLists.txt | 9 --------- docs/install.md | 4 ++-- src/CMakeLists.txt | 11 ++++------- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 20f37a8..6a50a0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,15 +2,6 @@ cmake_minimum_required (VERSION 2.8.4) set(project_name clangmm) project(${project_name}) -if(MSYS) - string(TOLOWER "/$ENV{MSYSTEM}" CMAKE_INSTALL_PREFIX) - set(library_path "${CMAKE_INSTALL_PREFIX}/bin/") - set(include_path "${CMAKE_INSTALL_PREFIX}/include/") -else() - set(library_path "/usr/local/lib/") - set(include_path "/usr/local/include/") -endif() - if(APPLE) set(Boost_USE_STATIC_LIBS "YES") set(CMAKE_MACOSX_RPATH 1) diff --git a/docs/install.md b/docs/install.md index 345595a..bb79a05 100644 --- a/docs/install.md +++ b/docs/install.md @@ -35,11 +35,11 @@ pacman -S git mingw-w64-[arch]-cmake make mingw-w64-[arch]-toolchain mingw-w64-[ ```sh git clone https://github.com/cppit/libclangmm.git cd libclangmm -cmake -G"MSYS Makefiles" . +cmake -G"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=/mingw[32 or 64] . make make install ``` -**You might have to install the files manually.** +