Changeset 574
- Timestamp:
- 06/27/08 14:02:08 (5 months ago)
- Files:
-
- trunk/rphp/cmake/modules/FindICU.cmake (modified) (4 diffs)
- trunk/rphp/runtime/CMakeLists.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/rphp/cmake/modules/FindICU.cmake
r572 r574 5 5 # ICU_FOUND - True if ICU found. 6 6 # ICU_I18N_FOUND - True if ICU's internationalization library found. 7 # ICU_IO_FOUND - True if ICU's ostream output lib is found. 7 8 # ICU_INCLUDE_DIRS - Directory to include to get ICU headers 8 9 # Note: always include ICU headers as, e.g., … … 11 12 # ICU_I18N_LIBRARIES - Libraries to link against for ICU internationaliation 12 13 # (note: in addition to ICU_LIBRARIES) 13 14 # 15 # ICU_IO_LIBRARIES - Libraries for ostream output 16 # 17 # 14 18 # Look for the header file. 15 19 find_path( … … 38 42 DOC "Libraries to link against for ICU internationalization") 39 43 mark_as_advanced(ICU_I18N_LIBRARY) 44 40 45 if (ICU_I18N_LIBRARY) 41 46 set(ICU_I18N_FOUND 1) … … 45 50 set(ICU_I18N_LIBRARIES) 46 51 endif (ICU_I18N_LIBRARY) 52 53 # Look for the ICU ostream library 54 find_library( 55 ICU_IO_LIBRARY 56 NAMES icuio 57 DOC "Libraries to link against for ICU ostream output") 58 mark_as_advanced(ICU_IO_LIBRARY) 59 60 if (ICU_IO_LIBRARY) 61 set(ICU_IO_FOUND 1) 62 set(ICU_IO_LIBRARIES ${ICU_IO_LIBRARY}) 63 else (ICU_IO_LIBRARY) 64 set(ICU_IO_FOUND 0) 65 set(ICU_IO_LIBRARIES) 66 endif (ICU_IO_LIBRARY) 67 47 68 else(ICU_INCLUDE_DIR AND ICU_LIBRARY) 48 69 set(ICU_FOUND 0) 49 70 set(ICU_I18N_FOUND 0) 71 set(ICU_IO_FOUND 0) 50 72 set(ICU_LIBRARIES) 51 73 set(ICU_I18N_LIBRARIES) 74 set(ICU_IO_LIBRARIES) 52 75 set(ICU_INCLUDE_DIRS) 53 76 endif(ICU_INCLUDE_DIR AND ICU_LIBRARY) trunk/rphp/runtime/CMakeLists.txt
r573 r574 14 14 15 15 add_executable( var-test ${SRC_FILES} ) 16 target_link_libraries( var-test ${ICU_LIBRARIES} ${ICU_IO_LIBRARIES} ) 17
