Commit 34d69371 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub

Merge pull request #103 from jcarpent/devel

Fix issue for pkg-config export of the lib
parents bc37f019 85e64ee1
language: python
python:
- "2.7"
- "3.5"
sudo: required
compiler:
- gcc
......@@ -22,14 +19,28 @@ jobs:
include:
- dist: bionic
env: BUILDTYPE=Release
python: 2.7
- dist: bionic
env: BUILDTYPE=Release
python: 3.6
- dist: bionic
env: BUILDTYPE=Debug
python: 2.7
- dist: bionic
env: BUILDTYPE=Debug
python: 3.6
- dist: xenial
env: BUILDTYPE=Release
python: 2.7
- dist: xenial
env: BUILDTYPE=Debug
env: BUILDTYPE=Release
python: 3.5
- dist: trusty
env: BUILDTYPE=Debug
env: BUILDTYPE=Release
python: 2.7
- dist: trusty
env: BUILDTYPE=Release
python: 3.4
notifications:
email:
......@@ -44,6 +55,7 @@ install: pip install coveralls numpy
script:
- export CMAKE_ADDITIONAL_OPTIONS="-DCMAKE_BUILD_TYPE=${BUILDTYPE}"
- sudo free -m -t
- ls -l /usr/lib/x86_64-linux-gnu/libboost_python*
- ./.travis/run ../travis_custom/custom_build
after_failure: ./.travis/run after_failure
after_success: ./.travis/run after_success
......@@ -126,7 +126,11 @@ SET(${PROJECT_NAME}_SOURCES
)
ADD_LIBRARY(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_SOURCES} ${${PROJECT_NAME}_HEADERS})
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SUFFIX "${PYTHON_EXT_SUFFIX}")
SET(LIB_${PROJECT_NAME}_SUFFIX ${PYTHON_EXT_SUFFIX})
IF(APPLE)
STRING(REPLACE ".so" ".dylib" LIB_${PROJECT_NAME}_SUFFIX ${LIB_${PROJECT_NAME}_SUFFIX})
ENDIF(APPLE)
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SUFFIX "${LIB_${PROJECT_NAME}_SUFFIX}")
TARGET_COMPILE_OPTIONS(${PROJECT_NAME} PRIVATE $<$<CXX_COMPILER_ID:MSVC>:-bigobj>)
TARGET_LINK_BOOST_PYTHON(${PROJECT_NAME})
......
Subproject commit efa25a9976b8a6fc9f51d26924d4238d0d4820b1
Subproject commit e6e09c0b944530c92c17c4fb64cd2a2f63ed46c0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment