Permalink
Browse files

Fix ICU 4.4 building, uversion.h exists in the new version too but do…

…esn't contain the constants
  • Loading branch information...
1 parent e9ae44c commit c91a4d09c61c0d79f668ed6d58c1bb9f35551230 @scottmac scottmac committed Jul 20, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 CMake/FindICU.cmake
View
@@ -32,10 +32,10 @@ if(ICU_INCLUDE_DIR AND ICU_LIBRARY)
set(ICU_VERSION 0)
set(ICU_MAJOR_VERSION 0)
set(ICU_MINOR_VERSION 0)
- if (EXISTS "${ICU_INCLUDE_DIR}/unicode/uversion.h")
- FILE(READ "${ICU_INCLUDE_DIR}/unicode/uversion.h" _ICU_VERSION_CONENTS)
- else()
+ if (EXISTS "${ICU_INCLUDE_DIR}/unicode/uvernum.h")
FILE(READ "${ICU_INCLUDE_DIR}/unicode/uvernum.h" _ICU_VERSION_CONENTS)
+ else()
+ FILE(READ "${ICU_INCLUDE_DIR}/unicode/uversion.h" _ICU_VERSION_CONENTS)
endif()
STRING(REGEX REPLACE ".*#define U_ICU_VERSION_MAJOR_NUM ([0-9]+).*" "\\1" ICU_MAJOR_VERSION "${_ICU_VERSION_CONENTS}")

0 comments on commit c91a4d0

Please sign in to comment.