diff options
author | erw7 <erw7.github@gmail.com> | 2021-02-24 13:54:12 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2021-02-25 13:50:30 +0900 |
commit | b2f1969f82ae0f02e480e8d2d5dc46a85eba33db (patch) | |
tree | 0783b8c4becb15137f606dce30154879a2ea101d | |
parent | 6b7cc45c4845624aa08232a860941b5a55b9640b (diff) | |
download | rneovim-b2f1969f82ae0f02e480e8d2d5dc46a85eba33db.tar.gz rneovim-b2f1969f82ae0f02e480e8d2d5dc46a85eba33db.tar.bz2 rneovim-b2f1969f82ae0f02e480e8d2d5dc46a85eba33db.zip |
option: fix problem with fileignorecase not being set properly
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | config/config.h.in | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e3c67c55cd..4e427eea26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,6 +83,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") endif() if(WIN32 OR CMAKE_SYSTEM_NAME STREQUAL "Darwin") + # Ignore case when comparing filenames on Windows and Mac. + set(CASE_INSENSITIVE_FILENAME TRUE) # Enable fixing case-insensitive filenames for Windows and Mac. set(USE_FNAME_CASE TRUE) endif() diff --git a/config/config.h.in b/config/config.h.in index 95e2c872a3..275bff79a0 100644 --- a/config/config.h.in +++ b/config/config.h.in @@ -40,6 +40,7 @@ #cmakedefine HAVE_WORKING_LIBINTL #cmakedefine HAVE_WSL #cmakedefine UNIX +#cmakedefine CASE_INSENSITIVE_FILENAME #cmakedefine USE_FNAME_CASE #cmakedefine HAVE_SYS_UIO_H #ifdef HAVE_SYS_UIO_H |