From 49cfb4cc8eaf676b8e3303832b0db41d40e9a1e0 Mon Sep 17 00:00:00 2001 From: Ben RUBSON Date: Mon, 23 Apr 2018 09:33:01 +0200 Subject: [PATCH] Cygwin, set proper installation prefix (#509) Put binaries next to Cygwin DLLs, which is easier for the user running EncFS out of a Cygwin console. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6eee2df..cc6a0d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,10 @@ if (NOT DEFINED LIB_INSTALL_DIR) set (LIB_INSTALL_DIR lib) endif () +if (CYGWIN) + set (CMAKE_INSTALL_PREFIX /usr) +endif() + # We need C++ 11 if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 3.0) # CMake 3.1 has built-in CXX standard checks.