~ubuntu-branches/ubuntu/wily/davix/wily

« back to all changes in this revision

Viewing changes to deps/boost_intern/src/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2015-07-31 13:17:55 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20150731131755-mizprbmn7ogv33te
Tags: 0.4.1-1
* Update to version 0.4.1
* Implement Multi-Arch support

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
 
3
 
## boost
4
 
if(NOT Boost_FOUND)
5
 
 
6
 
FILE(GLOB BOOST_SRC_SYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/system/src/*.cpp")
7
 
FILE(GLOB BOOST_SRC_THREAD "${CMAKE_CURRENT_SOURCE_DIR}/thread/src/pthread/*.cpp")
8
 
 
9
 
 
10
 
LIST(APPEND SRC_BOOST_ALL ${BOOST_SRC_THREAD} ${BOOST_SRC_SYSTEM})
11
 
 
12
 
SET(SRC_BOOST_ALL ${SRC_BOOST_ALL} PARENT_SCOPE)
13
 
 
14
 
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../ ")
15
 
add_definitions( -DBOOST_THREAD_BUILD_LIB=1)
16
 
add_definitions( -DBOOST_THREAD_POSIX )
17
 
add_definitions( -fPIC )
18
 
add_definitions(-fvisibility=hidden)
19
 
add_library(boost_static_internal STATIC ${SRC_BOOST_ALL})
20
 
 
21
 
# if the static library is produced, then we need also to install the dependent libraries to be useful
22
 
if(STATIC_LIBRARY)
23
 
  install(TARGETS boost_static_internal DESTINATION ${LIB_INSTALL_DIR} )
24
 
endif()
25
 
 
26
 
endif(NOT Boost_FOUND)