mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
include config.h for fontforge >= 2.0.0
This commit is contained in:
parent
839a710602
commit
363273b1e8
@ -43,14 +43,6 @@ else()
|
||||
message(FATAL_ERROR "Error: cannot locate fontforge.h")
|
||||
endif()
|
||||
|
||||
find_path(FF_CONFIG_INCLUDE_PATH config.h PATHS ${FONTFORGE_INCLUDE_DIRS})
|
||||
if(FF_CONFIG_INCLUDE_PATH)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -include ${FF_CONFIG_INCLUDE_PATH}/config.h")
|
||||
message("Found config.h: ${FF_CONFIG_INCLUDE_PATH}/config.h")
|
||||
else()
|
||||
message("Cannot locate config.h for fontforge")
|
||||
endif()
|
||||
|
||||
macro(wl_find_library LIB_NAME RESULT)
|
||||
unset(${RESULT})
|
||||
unset(${RESULT} CACHE)
|
||||
@ -87,6 +79,15 @@ else()
|
||||
set(PDF2HTMLEX_LIBS ${PDF2HTMLEX_LIBS} ${PYTHON_LIBRARIES})
|
||||
endif()
|
||||
|
||||
find_path(FF_CONFIG_INCLUDE_PATH config.h PATHS ${FONTFORGE_INCLUDE_DIRS})
|
||||
if(FF_CONFIG_INCLUDE_PATH)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -include ${FF_CONFIG_INCLUDE_PATH}/config.h")
|
||||
message("Found config.h: ${FF_CONFIG_INCLUDE_PATH}/config.h")
|
||||
else()
|
||||
message("Cannot locate config.h for fontforge")
|
||||
endif()
|
||||
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wunused-function")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
|
||||
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb")
|
||||
|
Loading…
Reference in New Issue
Block a user