Parcourir la source

xplat: ICU fallback only if custom path wasn't provided

Oguz Bastemur il y a 8 ans
Parent
commit
346fc90232
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      CMakeLists.txt

+ 3 - 1
CMakeLists.txt

@@ -194,7 +194,9 @@ elseif(CC_TARGET_OS_OSX)
         -DPLATFORM_UNIX
     )
 
-    if(NOT ICULIB)
+    # in case ICU path was given but it doesn't exist, build script will fail.
+    # so, fallback only if ICU path wasn't given
+    if(NOT ICU_INCLUDE_PATH)
       set(NO_ICU_PATH_GIVEN 1)
       message("-- Couldn't find ICU. Falling back to --no-icu build")
     endif()