mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-01 07:59:00 +00:00
fix cmake; cross-platform tmp-dir
This commit is contained in:
parent
3fb508088d
commit
2c8134ab73
|
@ -15,7 +15,7 @@ link_directories(${Boost_LIBRARY_DIRS})
|
||||||
find_path(FF_INCLUDE_PATH fontforge/fontforge.h)
|
find_path(FF_INCLUDE_PATH fontforge/fontforge.h)
|
||||||
if(FF_INCLUDE_PATH)
|
if(FF_INCLUDE_PATH)
|
||||||
message("Found fontforge.h: ${FF_INCLUDE_PATH}/fontforge/fontforge.h")
|
message("Found fontforge.h: ${FF_INCLUDE_PATH}/fontforge/fontforge.h")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -include ${FF_INCLUDE_PATH}/fontforge/fontforge.h")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -include ${FF_INCLUDE_PATH}/fontforge/config.h")
|
||||||
include_directories(${FF_INCLUDE_PATH}/fontforge)
|
include_directories(${FF_INCLUDE_PATH}/fontforge)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Error: cannot locate fontforge.h")
|
message(FATAL_ERROR "Error: cannot locate fontforge.h")
|
||||||
|
|
|
@ -65,7 +65,7 @@ po::variables_map parse_options (int argc, char **argv)
|
||||||
("user-password,u", po::value<string>(¶m.user_password)->default_value(""), "user password (for encrypted files)")
|
("user-password,u", po::value<string>(¶m.user_password)->default_value(""), "user password (for encrypted files)")
|
||||||
|
|
||||||
("dest-dir", po::value<string>(¶m.dest_dir)->default_value("."), "destination directory")
|
("dest-dir", po::value<string>(¶m.dest_dir)->default_value("."), "destination directory")
|
||||||
("tmp-dir", po::value<string>(¶m.tmp_dir)->default_value("/tmp/pdf2htmlEX"), "temporary directory")
|
("tmp-dir", po::value<string>(¶m.tmp_dir)->default_value((temp_directory_path() / "/pdf2htmlEX").string()), "temporary directory")
|
||||||
|
|
||||||
("first-page,f", po::value<int>(¶m.first_page)->default_value(1), "first page to process")
|
("first-page,f", po::value<int>(¶m.first_page)->default_value(1), "first page to process")
|
||||||
("last-page,l", po::value<int>(¶m.last_page)->default_value(numeric_limits<int>::max()), "last page to process")
|
("last-page,l", po::value<int>(¶m.last_page)->default_value(numeric_limits<int>::max()), "last page to process")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user