提交 59f4ae64 编写于 作者: J jinhui yuan

fix CMakeLists.txt issue on Windows: (1) GOOGLE_GLOG_DLL_DECL=; (2)

import ShLwApi.Lib for gflags on windows
上级 89953976
......@@ -10,6 +10,7 @@ if(WIN32)
add_definitions(-DNOMINMAX -D_WIN32_WINNT=0x0A00 -DLANG_CXX11 -DCOMPILER_MSVC -D__VERSION__=\"MSVC\")
add_definitions(-DWIN32 -DOS_WIN -D_MBCS -DWIN64 -DWIN32_LEAN_AND_MEAN -DNOGDI -DPLATFORM_WINDOWS)
add_definitions(/bigobj /nologo /EHsc /GF /FC /MP /Gm-)
add_definitions(-DGOOGLE_GLOG_DLL_DECL=)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
endif()
......@@ -30,6 +31,11 @@ set(oneflow_third_party_libs
${GRPC_STATIC_LIBRARIES}
)
if(WIN32)
# static gflags lib requires "PathMatchSpecA" defined in "ShLwApi.Lib"
list(APPEND oneflow_third_party_libs "ShLwApi.Lib")
endif()
set(oneflow_third_party_dependencies
zlib_copy_headers_to_destination
zlib_copy_libs_to_destination
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册