Skip to content

Commit

Permalink
disable boost autolinking on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
endyul committed Jun 4, 2017
1 parent 5c3bbfe commit e93434b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ elseif(MINGW)
set(CMAKE_CXX_FLAGS "-std=c++0x")
elseif(MSVC)
add_definitions(-D_WINDOWS) # make dynet happy at `dynet/mem.cc(7)`
add_definitions(-DBOOST_ALL_NO_LIB) # disable boost auto-linking on windows
set(CMAKE_CXX_FLAGS "/EHsc")
endif(APPLE)

Expand Down

0 comments on commit e93434b

Please sign in to comment.