@ -135,12 +135,15 @@ endif (protobuf_BUILD_SHARED_LIBS)
if ( MSVC )
if ( MSVC )
# B u i l d w i t h m u l t i p l e p r o c e s s e s
# B u i l d w i t h m u l t i p l e p r o c e s s e s
add_definitions ( /MP )
add_definitions ( /MP )
add_definitions ( /wd4244 /wd4267 /wd4018 /wd4355 /wd4800 /wd4251 /wd4996 /wd4146 /wd4305 /wd4309 )
add_definitions ( /wd4244 /wd4267 /wd4018 /wd4355 /wd4800 /wd4251 /wd4996 /wd4146 /wd4305 /wd4309 /wd4065 /wd4506 /wd4307 /wd4334 )
# A l l o w b i g o b j e c t
# A l l o w b i g o b j e c t
add_definitions ( /bigobj )
add_definitions ( /bigobj )
string ( REPLACE "/" "\\" PROTOBUF_SOURCE_WIN32_PATH ${ protobuf_SOURCE_DIR } )
string ( REPLACE "/" "\\" PROTOBUF_SOURCE_WIN32_PATH ${ protobuf_SOURCE_DIR } )
string ( REPLACE "/" "\\" PROTOBUF_BINARY_WIN32_PATH ${ protobuf_BINARY_DIR } )
string ( REPLACE "/" "\\" PROTOBUF_BINARY_WIN32_PATH ${ protobuf_BINARY_DIR } )
configure_file ( extract_includes.bat.in extract_includes.bat )
configure_file ( extract_includes.bat.in extract_includes.bat )
# S u p p r e s s l i n k e r w a r n i n g s a b o u t f i l e s w i t h n o s y m b o l s d e f i n e d .
set ( CMAKE_STATIC_LINKER_FLAGS /ignore:4221 )
endif ( MSVC )
endif ( MSVC )
get_filename_component ( protobuf_source_dir ${ protobuf_SOURCE_DIR } PATH )
get_filename_component ( protobuf_source_dir ${ protobuf_SOURCE_DIR } PATH )