Last active
December 29, 2015 17:29
-
-
Save Orangenhain/7704457 to your computer and use it in GitHub Desktop.
diff of changes to CMakeLists.txt to make mattext compile on Mavericks needs argp-standalone from homebrew ; and you most likely need to change the paths to homebrew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 75b6077..d969bc3 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -10,7 +10,6 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | |
include_directories(/opt/homebrew/include) | |
link_directories(/opt/homebrew/lib) | |
- set(TARGET_LIBS argp) | |
endif() | |
find_package(Curses) | |
@@ -30,7 +29,7 @@ if(CURSES_NCURSES_LIBRARY MATCHES NOTFOUND) | |
endif() | |
#use widechar ncurses library | |
-string(REPLACE "s." "sw." CURSES_NCURSES_LIBRARY "${CURSES_NCURSES_LIBRARY}") | |
+# string(REPLACE "s." "sw." CURSES_NCURSES_LIBRARY "${CURSES_NCURSES_LIBRARY}") | |
set(TARGET_LIBS ${TARGET_LIBS} ${CURSES_NCURSES_LIBRARY}) | |
include_directories(${CURSES_INCLUDE_PATH}) | |
@@ -41,7 +40,6 @@ set(CMAKE_CXX_FLAGS | |
-Wuninitialized | |
-Winit-self | |
-Wtype-limits | |
- -Wclobbered | |
-Wempty-body | |
) | |
#make clang just ignore unknown options | |
@@ -59,6 +57,7 @@ add_executable(${TARGET} ${${TARGET}_SRCS}) | |
target_link_libraries(${TARGET} | |
${TARGET_LIBS} | |
+ argp | |
) | |
#compress manpage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment