changed version nr. moved BUILD_SHARED option to top with other build option.
This commit is contained in:
parent
b558b8cac6
commit
4da26b02a4
|
|
@ -4,7 +4,8 @@ cmake_minimum_required(VERSION 3.1)
|
||||||
project(amqpcpp)
|
project(amqpcpp)
|
||||||
|
|
||||||
# build options
|
# build options
|
||||||
option(LINUX_TCP "Build linux sockets implementation" OFF)
|
option(BUILD_SHARED "Build shared library. If off, build will be static." OFF)
|
||||||
|
option(LINUX_TCP "Build linux sockets implementation." OFF)
|
||||||
|
|
||||||
# set output directory
|
# set output directory
|
||||||
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin)
|
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin)
|
||||||
|
|
@ -43,10 +44,9 @@ endif()
|
||||||
|
|
||||||
|
|
||||||
# TODO Cleanup into this part of the cmakefile
|
# TODO Cleanup into this part of the cmakefile
|
||||||
option(BUILD_SHARED "build shared library" OFF)
|
|
||||||
if(BUILD_SHARED)
|
if(BUILD_SHARED)
|
||||||
add_library(${PROJECT_NAME} SHARED ${SRCS})
|
add_library(${PROJECT_NAME} SHARED ${SRCS})
|
||||||
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION 2.7) # TODO version incorrect
|
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION 2.8) # TODO version incorrect
|
||||||
install(TARGETS ${PROJECT_NAME}
|
install(TARGETS ${PROJECT_NAME}
|
||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION lib
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue