Skip to content

Instantly share code, notes, and snippets.

@cfg
Last active December 21, 2015 03:29
Show Gist options
  • Select an option

  • Save cfg/6242453 to your computer and use it in GitHub Desktop.

Select an option

Save cfg/6242453 to your computer and use it in GitHub Desktop.
Patch for https://github.com/aelliott/expressioneditor CMakeLists.txt to search for the ICU lib in /usr/local/opt/icu4c where homebrew installs it.
--- orig/CMakeLists.txt 2013-08-15 11:43:06.000000000 -0500
+++ patched/CMakeLists.txt 2013-08-15 11:47:43.000000000 -0500
@@ -6,10 +6,13 @@
PROJECT(expressioneditor)
# The version number.
SET(expressioneditor_VERSION_MAJOR 0)
SET(expressioneditor_VERSION_MINOR 1)
+set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} /usr/local/opt/icu4c/lib)
+set(CMAKE_INCLUDE_PATH ${CMAKE_LIBRARY_PATH} /usr/local/opt/icu4c/include)
+
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR} ${expressioneditor_SOURCE_DIR} ${expressioneditor_BINARY_DIR})
INCLUDE(CheckIncludeFiles)
#INCLUDE(CheckLibraryExists)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment