1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-06-28 23:09:01 +00:00

fix cmake; cross-platform tmp-dir

This commit is contained in:
Lu Wang 2012-09-06 16:28:49 +08:00
parent 3fb508088d
commit 2c8134ab73
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -65,7 +65,7 @@ po::variables_map parse_options (int argc, char **argv)
("user-password,u", po::value<string>(&param.user_password)->default_value(""), "user password (for encrypted files)")
("dest-dir", po::value<string>(&param.dest_dir)->default_value("."), "destination directory")
("tmp-dir", po::value<string>(&param.tmp_dir)->default_value("/tmp/pdf2htmlEX"), "temporary directory")
("tmp-dir", po::value<string>(&param.tmp_dir)->default_value((temp_directory_path() / "/pdf2htmlEX").string()), "temporary directory")
("first-page,f", po::value<int>(&param.first_page)->default_value(1), "first page to process")
("last-page,l", po::value<int>(&param.last_page)->default_value(numeric_limits<int>::max()), "last page to process")