aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2021-02-24 13:54:12 +0900
committererw7 <erw7.github@gmail.com>2021-02-25 13:50:30 +0900
commitb2f1969f82ae0f02e480e8d2d5dc46a85eba33db (patch)
tree0783b8c4becb15137f606dce30154879a2ea101d
parent6b7cc45c4845624aa08232a860941b5a55b9640b (diff)
downloadrneovim-b2f1969f82ae0f02e480e8d2d5dc46a85eba33db.tar.gz
rneovim-b2f1969f82ae0f02e480e8d2d5dc46a85eba33db.tar.bz2
rneovim-b2f1969f82ae0f02e480e8d2d5dc46a85eba33db.zip
option: fix problem with fileignorecase not being set properly
-rw-r--r--CMakeLists.txt2
-rw-r--r--config/config.h.in1
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