Skip to content

Commit

Permalink
Fix mingw phtread bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneplus committed May 23, 2015
1 parent dc507d6 commit 7cfbe97
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ if (APPLE)
set(CMAKE_CXX_FLAGS "-std=c++11 -Wno-c++11-narrowing")
endif(APPLE)

if (MINGW)
set(CMAKE_CXX_FLAGS "-std=c++11 -Wno-narrowing -fpermissive")
endif (MINGW)

# -- config output directories
set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set (LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
Expand Down
2 changes: 1 addition & 1 deletion src/console/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ set_target_properties (ner_cmdline PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}/examples/)


if (NOT MSVC)
if (NOT MSVC AND NOT MINGW)
target_link_libraries (ltp_test pthread)
target_link_libraries (cws_cmdline pthread)
target_link_libraries (pos_cmdline pthread)
Expand Down

0 comments on commit 7cfbe97

Please sign in to comment.