|
@@ -79,10 +79,10 @@ target_link_libraries(${LIBRARY_NAME} ${X11_LIBRARIES}
|
79
|
79
|
|
80
|
80
|
target_link_libraries(${EXECUTABLE_NAME} ${LIBRARY_NAME} )
|
81
|
81
|
|
82
|
|
-set( SLOP_UNICODE TRUE CACHE BOOL "To enable or disable unicode support, really should be left to TRUE since old nvidia drivers crash with it off." )
|
83
|
|
-if ( SLOP_UNICODE )
|
|
82
|
+find_package(ICU COMPONENTS uc)
|
|
83
|
+set( SLOP_UNICODE TRUE CACHE BOOL "To enable or disable unicode support." )
|
|
84
|
+if ( SLOP_UNICODE AND ICU_FOUND )
|
84
|
85
|
# ICU is required for old nvidia drivers to work for whatever reason.
|
85
|
|
- find_package(ICU REQUIRED COMPONENTS uc)
|
86
|
86
|
add_definitions(-DCXXOPTS_USE_UNICODE)
|
87
|
87
|
include_directories( ${ICU_INCLUDE_DIR} )
|
88
|
88
|
target_link_libraries(${EXECUTABLE_NAME} ${ICU_UC_LIBRARIES} )
|