Mercurial > hg > orthanc
comparison Resources/CMake/LibIcuConfiguration.cmake @ 3244:6f35279215c4
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 16 Feb 2019 10:27:07 +0100 |
parents | 5d78df37c62f |
children | 8b091a51b1b9 |
comparison
equal
deleted
inserted
replaced
3243:cf0ad1fb2bb7 | 3244:6f35279215c4 |
---|---|
42 set_source_files_properties( | 42 set_source_files_properties( |
43 ${CMAKE_BINARY_DIR}/${LIBICU_DATA} | 43 ${CMAKE_BINARY_DIR}/${LIBICU_DATA} |
44 PROPERTIES COMPILE_DEFINITIONS "char16_t=uint16_t" | 44 PROPERTIES COMPILE_DEFINITIONS "char16_t=uint16_t" |
45 ) | 45 ) |
46 | 46 |
47 if(CMAKE_SYSTEM_NAME STREQUAL "Windows") | |
48 set_source_files_properties( | |
49 ${LIBICU_SOURCES_DIR}/source/common/locmap.c | |
50 PROPERTIES COMPILE_DEFINITIONS "LOCALE_SNAME=-" | |
51 ) | |
52 endif() | |
53 | |
54 source_group(ThirdParty\\libicu REGULAR_EXPRESSION ${LIBICU_SOURCES_DIR}/.*) | |
55 | |
47 else() | 56 else() |
48 CHECK_INCLUDE_FILE_CXX(unicode/uvernum.h HAVE_ICU_H) | 57 CHECK_INCLUDE_FILE_CXX(unicode/uvernum.h HAVE_ICU_H) |
49 if (NOT HAVE_ICU_H) | 58 if (NOT HAVE_ICU_H) |
50 message(FATAL_ERROR "Please install the libicu-dev package") | 59 message(FATAL_ERROR "Please install the libicu-dev package") |
51 endif() | 60 endif() |