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.
This commit is contained in:
Ben RUBSON 2018-04-23 09:33:01 +02:00 committed by GitHub
parent df7403c256
commit 49cfb4cc8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.