Skip to content

Commit

Permalink
Cygwin, set proper installation prefix (#509)
Browse files Browse the repository at this point in the history
Put binaries next to Cygwin DLLs, which is easier for the user running EncFS out of a Cygwin console.
  • Loading branch information
Ben RUBSON authored Apr 23, 2018
1 parent df7403c commit 49cfb4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 49cfb4c

Please sign in to comment.