fix compilation 3
This commit is contained in:
parent
15bdfab39c
commit
9aba55b0a0
2 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ ADD_DEPENDENCIES(spectrum2 spectrum2_libpurple_backend)
|
|||
ADD_DEPENDENCIES(spectrum2 spectrum2_libircclient-qt_backend)
|
||||
|
||||
target_link_libraries(spectrum2 transport ${SWIFTEN_LIBRARY} ${LOG4CXX_LIBRARIES})
|
||||
if (WIN32)
|
||||
if (NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||
target_link_libraries(spectrum2 libprotobuf)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -27,11 +27,11 @@ endif()
|
|||
|
||||
|
||||
if (PROTOBUF_FOUND)
|
||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
if (NOT WIN32)
|
||||
ADD_LIBRARY(transport SHARED ${HEADERS} ${SRC} ${SWIFTEN_SRC})
|
||||
else(CMAKE_COMPILER_IS_GNUCXX)
|
||||
else()
|
||||
ADD_LIBRARY(transport STATIC ${HEADERS} ${SRC} ${SWIFTEN_SRC})
|
||||
endif(CMAKE_COMPILER_IS_GNUCXX)
|
||||
endif()
|
||||
# SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/../include/transport/protocol.pb.cc PROPERTIES GENERATED 1)
|
||||
ADD_DEPENDENCIES(transport pb)
|
||||
else(PROTOBUF_FOUND)
|
||||
|
|
Loading…
Add table
Reference in a new issue