Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Commit

Permalink
fix cmake; cross-platform tmp-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
coolwanglu committed Sep 6, 2012
1 parent 3fb5080 commit 2c8134a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion src/pdf2htmlEX.cc
Expand Up @@ -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")
Expand Down

0 comments on commit 2c8134a

Please sign in to comment.