Skip to content

Commit 6bcb098

Browse files
committed
cmake: s/ICONV/Iconv/ in FIND_PACKAGE
The cmake module we provide is in the file FindIconv.cmake, so we must match the case correctly. It happens to work in practice because we only turn on ICONV on Darwin, and people generally have case-insensitive filesystems there. Note that we only need to update the package name here. The package itself still sets the all-uppercase ICONV_FOUND flag, so we continue to use uppercase in the rest of cmake.
1 parent ed476c2 commit 6bcb098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ ENDIF()
207207

208208
# Optional external dependency: iconv
209209
IF (USE_ICONV)
210-
FIND_PACKAGE(ICONV)
210+
FIND_PACKAGE(Iconv)
211211
ENDIF()
212212
IF (ICONV_FOUND)
213213
ADD_DEFINITIONS(-DGIT_USE_ICONV)

0 commit comments

Comments
 (0)