Skip to content

Commit

Permalink
Address issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
BenKaufmann committed Aug 30, 2017
1 parent 9b7b706 commit 5738b7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
add_executable(lpconvert lpconvert.cpp)
target_link_libraries(lpconvert libpotassco)
set_target_properties(lpconvert PROPERTIES FOLDER exe)

install(TARGETS lpconvert EXPORT lpconvert DESTINATION "bin")
set(install_dir bin)
if (CMAKE_INSTALL_BINDIR)
set(install_dir ${CMAKE_INSTALL_BINDIR})
endif()
install(TARGETS lpconvert EXPORT lpconvert DESTINATION "${install_dir}")
2 changes: 1 addition & 1 deletion src/string_convert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static double strtod_l(const char* x, char** end, const my_locale_t& loc) {
inline void freelocale(const my_locale_t&) {}
inline my_locale_t default_locale() { return std::locale::classic(); }
#else
#include <xlocale.h>
#include <locale.h>
typedef locale_t my_locale_t;
inline my_locale_t default_locale() { return newlocale(LC_ALL_MASK, "C", 0); }
#endif
Expand Down

0 comments on commit 5738b7f

Please sign in to comment.