Skip to content

Commit

Permalink
Fix std::getline in MSVC, add link_target for parser_dll.lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneplus committed May 19, 2015
1 parent bc53a37 commit c77fc3a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/console/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ set_target_properties (ner_cmdline PROPERTIES
if (MSVC)
target_link_libraries (ltp_test
${THIRDPARTY_DIR}/openblas/lib/libopenblas.dll.a)
target_link_libraries (par_cmdline
${THIRDPARTY_DIR}/openblas/lib/libopenblas.dll.a)
else()
target_link_libraries (ltp_test openblas pthread)
target_link_libraries (cws_cmdline pthread)
Expand Down
1 change: 1 addition & 0 deletions src/console/dispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define __LTP_CONSOLE_DISPATCHER__

#include <iostream>
#include <string>
#include <map>
#include "tinythread.h"

Expand Down
6 changes: 6 additions & 0 deletions src/parser.n/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@ set_target_properties (parser_shared_lib PROPERTIES
add_executable (nndeparser main.cpp parser_frontend.cpp io.cpp ${nndeparser_SRC})
target_link_libraries (nndeparser boost_program_options_static_lib)
if (MSVC)
target_link_libraries (parser_static_lib
${THIRDPARTY_DIR}/openblas/lib/libopenblas.dll.a)
target_link_libraries (parser_shared_lib
${THIRDPARTY_DIR}/openblas/lib/libopenblas.dll.a)
target_link_libraries (nndeparser
${THIRDPARTY_DIR}/openblas/lib/libopenblas.dll.a)
else()
target_link_libraries (parser_static_lib openblas)
target_link_libraries (parser_shared_lib openblas)
target_link_libraries (nndeparser openblas)
endif ()
set_target_properties (nndeparser PROPERTIES
Expand Down

0 comments on commit c77fc3a

Please sign in to comment.