-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update cmake * Update cmake, make Travis use it * Enable all tests in a single command : make check * Make cmake flawlessly run with Debian jessie cmake 3.0.2 * Make Travis use our own cmake 3.0.2 compiled version * Typo in preferred version * Be sure travis will have gettext
- Loading branch information
Showing
7 changed files
with
90 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
set -x | ||
set -e | ||
if [ ! -e ci/cmake/bin/cmake ]; then | ||
wget http://www.cmake.org/files/v3.1/cmake-3.1.3-Linux-x86_64.tar.gz | ||
tar -xzf cmake-3.1.3-Linux-x86_64.tar.gz | ||
mv cmake-3.1.3-Linux-x86_64 ci/cmake | ||
#wget http://www.cmake.org/files/v3.1/cmake-3.1.0-Linux-x86_64.tar.gz | ||
tar -xzf ci/cmake-3.0.2-Linux-x86_64.tar.gz | ||
mv cmake-3.0.2-Linux-x86_64 ci/cmake | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying | ||
# file Copyright.txt or https://cmake.org/licensing for details. | ||
|
||
#.rst: | ||
# FindIntl | ||
# -------- | ||
# | ||
# Find the Gettext libintl headers and libraries. | ||
# | ||
# This module reports information about the Gettext libintl | ||
# installation in several variables. General variables:: | ||
# | ||
# Intl_FOUND - true if the libintl headers and libraries were found | ||
# Intl_INCLUDE_DIRS - the directory containing the libintl headers | ||
# Intl_LIBRARIES - libintl libraries to be linked | ||
# | ||
# The following cache variables may also be set:: | ||
# | ||
# Intl_INCLUDE_DIR - the directory containing the libintl headers | ||
# Intl_LIBRARY - the libintl library (if any) | ||
# | ||
# .. note:: | ||
# On some platforms, such as Linux with GNU libc, the gettext | ||
# functions are present in the C standard library and libintl | ||
# is not required. ``Intl_LIBRARIES`` will be empty in this | ||
# case. | ||
# | ||
# .. note:: | ||
# If you wish to use the Gettext tools (``msgmerge``, | ||
# ``msgfmt``, etc.), use :module:`FindGettext`. | ||
|
||
|
||
# Written by Roger Leigh <rleigh@codelibre.net> | ||
|
||
# Find include directory | ||
find_path(Intl_INCLUDE_DIR | ||
NAMES "libintl.h" | ||
DOC "libintl include directory") | ||
mark_as_advanced(Intl_INCLUDE_DIR) | ||
|
||
# Find all Intl libraries | ||
find_library(Intl_LIBRARY "intl" | ||
DOC "libintl libraries (if not in the C library)") | ||
mark_as_advanced(Intl_LIBRARY) | ||
|
||
#include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Intl | ||
FOUND_VAR Intl_FOUND | ||
REQUIRED_VARS Intl_INCLUDE_DIR | ||
FAIL_MESSAGE "Failed to find Gettext libintl") | ||
|
||
if(Intl_FOUND) | ||
set(Intl_INCLUDE_DIRS "${Intl_INCLUDE_DIR}") | ||
if(Intl_LIBRARY) | ||
set(Intl_LIBRARIES "${Intl_LIBRARY}") | ||
else() | ||
unset(Intl_LIBRARIES) | ||
endif() | ||
endif() |