mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
committed by
Brad King
parent
b384058e4b
commit
e978b3b814
@@ -556,7 +556,7 @@ if(Protobuf_INCLUDE_DIR)
|
|||||||
INTERFACE_COMPILE_FEATURES cxx_std_11
|
INTERFACE_COMPILE_FEATURES cxx_std_11
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
if (MSVC AND NOT Protobuf_USE_STATIC_LIBS)
|
if (WIN32 AND NOT Protobuf_USE_STATIC_LIBS)
|
||||||
set_property(TARGET protobuf::libprotobuf APPEND PROPERTY
|
set_property(TARGET protobuf::libprotobuf APPEND PROPERTY
|
||||||
INTERFACE_COMPILE_DEFINITIONS "PROTOBUF_USE_DLLS"
|
INTERFACE_COMPILE_DEFINITIONS "PROTOBUF_USE_DLLS"
|
||||||
)
|
)
|
||||||
@@ -589,7 +589,7 @@ if(Protobuf_INCLUDE_DIR)
|
|||||||
set_target_properties(protobuf::libprotobuf-lite PROPERTIES
|
set_target_properties(protobuf::libprotobuf-lite PROPERTIES
|
||||||
IMPORTED_LOCATION_DEBUG "${Protobuf_LITE_LIBRARY_DEBUG}")
|
IMPORTED_LOCATION_DEBUG "${Protobuf_LITE_LIBRARY_DEBUG}")
|
||||||
endif()
|
endif()
|
||||||
if (MSVC AND NOT Protobuf_USE_STATIC_LIBS)
|
if (WIN32 AND NOT Protobuf_USE_STATIC_LIBS)
|
||||||
set_property(TARGET protobuf::libprotobuf-lite APPEND PROPERTY
|
set_property(TARGET protobuf::libprotobuf-lite APPEND PROPERTY
|
||||||
INTERFACE_COMPILE_DEFINITIONS "PROTOBUF_USE_DLLS"
|
INTERFACE_COMPILE_DEFINITIONS "PROTOBUF_USE_DLLS"
|
||||||
)
|
)
|
||||||
@@ -627,7 +627,7 @@ if(Protobuf_INCLUDE_DIR)
|
|||||||
INTERFACE_COMPILE_FEATURES cxx_std_11
|
INTERFACE_COMPILE_FEATURES cxx_std_11
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
if (MSVC AND NOT Protobuf_USE_STATIC_LIBS)
|
if (WIN32 AND NOT Protobuf_USE_STATIC_LIBS)
|
||||||
set_property(TARGET protobuf::libprotoc APPEND PROPERTY
|
set_property(TARGET protobuf::libprotoc APPEND PROPERTY
|
||||||
INTERFACE_COMPILE_DEFINITIONS "PROTOBUF_USE_DLLS"
|
INTERFACE_COMPILE_DEFINITIONS "PROTOBUF_USE_DLLS"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user