diff --git a/CMakeLists.txt b/CMakeLists.txt index cc6a0d4..5509c86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,9 @@ if (NOT DEFINED LIB_INSTALL_DIR) endif () if (CYGWIN) - set (CMAKE_INSTALL_PREFIX /usr) + if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set (CMAKE_INSTALL_PREFIX /usr) + endif() endif() # We need C++ 11