Skip to content

Commit

Permalink
Merge pull request #111 from rouault/BUILD_SHARED_LIBS
Browse files Browse the repository at this point in the history
CMake: add a BUILD_SHARED_LIBS option, and make it default to ON
  • Loading branch information
rouault authored May 20, 2024
2 parents 7a96e38 + 42d7f60 commit 0bfa226
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ matrix:
compiler: gcc
language: cpp
sudo: required
dist: jammy
env:
- BUILD_NAME=linux

- os: osx
osx_image: xcode13.1
osx_image: xcode14.2
compiler: clang
cache:
apt: true
Expand Down Expand Up @@ -43,8 +44,9 @@ install:
- ./autogen.sh
- ./configure
- make dist
- tar xvzf libgeotiff*.tar.gz
- cd libgeotiff*
- mkdir libgeotiff
- cat libgeotiff*.tar.gz | tar xz -C libgeotiff --strip-components=1
- cd libgeotiff
- mkdir build_autoconf
- cd build_autoconf
- CFLAGS="-Wall -Wextra -Werror" ../configure
Expand Down
2 changes: 2 additions & 0 deletions libgeotiff/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
###############################################################################
# General build settings

option(BUILD_SHARED_LIBS "Set ON to build shared library" ON)

IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE Debug CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel"
Expand Down

0 comments on commit 0bfa226

Please sign in to comment.