Browse Source

Fixed find_*-functions, now should work on all platforms without all the exceptions.

merge-requests/365/head
eidheim 10 years ago
parent
commit
29b40d70c8
  1. 6
      docs/install.md
  2. 14
      src/cmake/Modules/FindLibClangmm.cmake

6
docs/install.md

@ -28,12 +28,6 @@ make install
``` ```
##Windows with MSYS2 (https://msys2.github.io/) ##Windows with MSYS2 (https://msys2.github.io/)
Please wait until the following TODOs are resolved:
* Newlines are saved properly
* Windows implementation of creating processes
* libclang(mm) finds header-files
* fix make install, and install to mingw[32/64]/bin
Install dependencies(replace [arch] with i686 or x86_64 depending on your MSYS2 install): Install dependencies(replace [arch] with i686 or x86_64 depending on your MSYS2 install):
```sh ```sh
pacman -S patch autoconf automake-wrapper mingw-w64-[arch]-gtkmm3 mingw-w64-[arch]-boost mingw-w64-[arch]-aspell mingw-w64-[arch]-aspell-en pacman -S patch autoconf automake-wrapper mingw-w64-[arch]-gtkmm3 mingw-w64-[arch]-boost mingw-w64-[arch]-aspell mingw-w64-[arch]-aspell-en

14
src/cmake/Modules/FindLibClangmm.cmake

@ -4,19 +4,9 @@
find_package(PkgConfig) find_package(PkgConfig)
if(MSYS) find_path(LCL_INCLUDE_DIR clangmm.h)
string(TOLOWER "/$ENV{MSYSTEM}" MSYS_PATH)
set(MSYS_INCLUDE_PATH "${MSYS_PATH}/include/libclangmm")
set(MSYS_BIN_PATH "${MSYS_PATH}/bin")
endif()
find_path(LCL_INCLUDE_DIR clangmm.h find_library(LCL_LIBRARY NAMES clangmm)
PATHS /usr/local/include/libclangmm ${MSYS_INCLUDE_PATH}
)
find_library(LCL_LIBRARY NAMES clangmm
PATHS /usr/local/lib ${MSYS_BIN_PATH}
)
set(LCL_LIBRARIES ${LCL_LIBRARY} ) set(LCL_LIBRARIES ${LCL_LIBRARY} )
set(LCL_INCLUDE_DIRS ${LCL_INCLUDE_DIR} ) set(LCL_INCLUDE_DIRS ${LCL_INCLUDE_DIR} )

Loading…
Cancel
Save