mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +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)
|
||||
if(FF_INCLUDE_PATH)
|
||||
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)
|
||||
else()
|
||||
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)")
|
||||
|
||||
("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")
|
||||
("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