Re: [cmake-developers] PLplot contract test

2017-11-09 Thread Alan W. Irwin

On 2017-11-08 18:00-0800 Alan W. Irwin wrote:

[...]

Changing topics back to the Nightly case where the job is started in a
crontab environment rather than on the normal desktop command line as
above, further research indicates it is possible to set DISPLAY for
such environments (assuming that DISPLAY exists at the time the
crontab job fires as is typical for my case).  So I am going to try
that to see if that change plus the above setting of XAUTHORITY solves
the Nightly issue as well.


Thanks to that crontab change to define the DISPLAY environment
variable, all is now well with the Nightly case, see
.

So that appears to be the end of the configuration issues with the
Contracts.PLplot test, and my thanks to Brad for implementing this
test in the first place, and both Brad and Ben for some key help with
my configuration of this test.

So for others here that might be interested, Contracts.PLplot tests a
build of the stage/master/nightly/latest branch of CMake by using
ExternalProject_Add to git checkout a specified version of PLplot and 
to configure, build, and install that version with user control of the

PLplot version selected for the test and the CMake options used to
build PLplot.  So this test is good from the PLplot perspective
because it makes it more difficult for some new CMake development to
cause PLplot developers problems without us knowing it long in advance
of CMake releases.  And it is also good from the CMake testing
perspective since it is a test that exercises a lot of different CMake
functionality in a realistic way (i.e., as used in a rather complex
build system, warts and all).  Additional notes are (1) because of the
relatively small size of the PLplot project (despite its build-system
complexity) this test adds less than ~30 per cent to the overall cost
of building and testing CMake, and (2) this test should work on
essentially all platforms (the build of PLplot is known to work on at
least Linux, Mac OS X, Cygwin, MinGW-w64/MSYS2, and MSVC). So if
anyone else is interested in trying this test on their favorite
platform(s), feel free to contact me for help with configuring it and
overcoming any PLplot build failures in the unlikely event of you
encountering those.

Alan
__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__

Linux-powered Science
__
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers


[Cmake-commits] CMake branch, master, updated. v3.10.0-rc4-285-g0d7086e

2017-11-09 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  0d7086e3daa67d6679f5ab01d9b187c333cca627 (commit)
   via  b551beb6facee72d1c1af455a9e4e8ecc7be959f (commit)
  from  6afc841e74cf15bab2bf30966a4ea277d9fff33f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0d7086e3daa67d6679f5ab01d9b187c333cca627
commit 0d7086e3daa67d6679f5ab01d9b187c333cca627
Merge: 6afc841 b551beb
Author: Craig Scott 
AuthorDate: Fri Nov 10 05:24:05 2017 +
Commit: Kitware Robot 
CommitDate: Fri Nov 10 00:24:50 2017 -0500

Merge topic 'fetchcontent-support-use-before-project-command'

b551beb6 FetchContent: Support use of the module before "project()" command

Acked-by: Kitware Robot 
Merge-request: !1448


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b551beb6facee72d1c1af455a9e4e8ecc7be959f
commit b551beb6facee72d1c1af455a9e4e8ecc7be959f
Author: Jean-Christophe Fillion-Robin 
AuthorDate: Tue Nov 7 09:50:02 2017 -0500
Commit: Jean-Christophe Fillion-Robin 
CommitDate: Tue Nov 7 09:50:02 2017 -0500

FetchContent: Support use of the module before "project()" command

Co-authored-by: Craig Scott 
Co-authored-by: Brad King 

diff --git a/Modules/FetchContent.cmake b/Modules/FetchContent.cmake
index 132354f..98cdf6c 100644
--- a/Modules/FetchContent.cmake
+++ b/Modules/FetchContent.cmake
@@ -754,7 +754,9 @@ function(__FetchContent_directPopulate contentName)
   list(APPEND generatorOpts "-T${CMAKE_GENERATOR_TOOLSET}")
 endif()
 
-list(APPEND generatorOpts 
"-DCMAKE_MAKE_PROGRAM:FILE=${CMAKE_MAKE_PROGRAM}")
+if(CMAKE_MAKE_PROGRAM)
+  list(APPEND generatorOpts 
"-DCMAKE_MAKE_PROGRAM:FILEPATH=${CMAKE_MAKE_PROGRAM}")
+endif()
 
   else()
 # Likely we've been invoked via CMake's script mode where no

---

Summary of changes:
 Modules/FetchContent.cmake |4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.10.0-rc4-283-g6afc841

2017-11-09 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  6afc841e74cf15bab2bf30966a4ea277d9fff33f (commit)
  from  d9bc6fd45191731d707af248fae4958732c2bc94 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6afc841e74cf15bab2bf30966a4ea277d9fff33f
commit 6afc841e74cf15bab2bf30966a4ea277d9fff33f
Author: Kitware Robot <kwro...@kitware.com>
AuthorDate: Fri Nov 10 00:01:14 2017 -0500
Commit: Kitware Robot <kwro...@kitware.com>
CommitDate: Fri Nov 10 00:01:14 2017 -0500

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index 4c66678..d9f6abd 100644
--- a/Source/CMakeVersion.cmake
+++ b/Source/CMakeVersion.cmake
@@ -1,5 +1,5 @@
 # CMake version number components.
 set(CMake_VERSION_MAJOR 3)
 set(CMake_VERSION_MINOR 10)
-set(CMake_VERSION_PATCH 20171109)
+set(CMake_VERSION_PATCH 20171110)
 #set(CMake_VERSION_RC 1)

---

Summary of changes:
 Source/CMakeVersion.cmake |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.10.0-rc4-282-gd9bc6fd

2017-11-09 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  d9bc6fd45191731d707af248fae4958732c2bc94 (commit)
   via  c167a9b18c2fab97d43f401c5da652e76baecaa3 (commit)
   via  1f15324824dc90180bef1dfdb5fce6ff71c1b40c (commit)
   via  e6b209c870af3b343e9703462777beb24dad55a6 (commit)
  from  4eefad236aad84c1f4ca38fcd3533a0ec7401a3b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d9bc6fd45191731d707af248fae4958732c2bc94
commit d9bc6fd45191731d707af248fae4958732c2bc94
Merge: c167a9b 1f15324
Author: Brad King 
AuthorDate: Thu Nov 9 13:19:36 2017 -0500
Commit: Brad King 
CommitDate: Thu Nov 9 13:19:36 2017 -0500

Merge branch 'release-3.10'


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c167a9b18c2fab97d43f401c5da652e76baecaa3
commit c167a9b18c2fab97d43f401c5da652e76baecaa3
Merge: 4eefad2 e6b209c
Author: Brad King 
AuthorDate: Thu Nov 9 18:17:30 2017 +
Commit: Kitware Robot 
CommitDate: Thu Nov 9 13:17:41 2017 -0500

Merge topic 'FindOpenGL-no-glvnd-for-GL'

e6b209c8 FindOpenGL: Default to non-GLVND libraries for legacy GL

Acked-by: Kitware Robot 
Merge-request: !1466


---

Summary of changes:
 Modules/FindOpenGL.cmake |   44 
 1 file changed, 24 insertions(+), 20 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, release, updated. v3.10.0-rc4-12-g1f15324

2017-11-09 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, release has been updated
   via  1f15324824dc90180bef1dfdb5fce6ff71c1b40c (commit)
   via  e6b209c870af3b343e9703462777beb24dad55a6 (commit)
  from  24ca336981696c6f77a4eb965ccc79ad4c98a2c0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
---

Summary of changes:
 Modules/FindOpenGL.cmake |   44 
 1 file changed, 24 insertions(+), 20 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.10.0-rc4-278-g4eefad2

2017-11-09 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  4eefad236aad84c1f4ca38fcd3533a0ec7401a3b (commit)
   via  a16930167dcec066eb70925b82ecfd27e48d2660 (commit)
   via  05d8892e6113272c9b9ab73ceb9c8319e6690a25 (commit)
   via  7e896029cd6bc0a19b7e0ed6fa7b876e0f1764b3 (commit)
   via  a4c829167dc8fa24e151d2afde7896b4588b24ad (commit)
   via  670ad047b34d983daf1f17f8b32c4abe2b7f22b1 (commit)
   via  deeba85f81bb031384c1c014d7adcb733da491b4 (commit)
   via  24ca336981696c6f77a4eb965ccc79ad4c98a2c0 (commit)
   via  a6abb6c8b63434d1794a8fd6ae1d5f5fa2dc85f3 (commit)
  from  0682e77f3b65850d37d8d91533c62b30a348454b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4eefad236aad84c1f4ca38fcd3533a0ec7401a3b
commit 4eefad236aad84c1f4ca38fcd3533a0ec7401a3b
Merge: a169301 24ca336
Author: Brad King 
AuthorDate: Thu Nov 9 08:31:39 2017 -0500
Commit: Brad King 
CommitDate: Thu Nov 9 08:31:39 2017 -0500

Merge branch 'release-3.10'


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a16930167dcec066eb70925b82ecfd27e48d2660
commit a16930167dcec066eb70925b82ecfd27e48d2660
Merge: 05d8892 a6abb6c
Author: Brad King 
AuthorDate: Thu Nov 9 13:30:15 2017 +
Commit: Kitware Robot 
CommitDate: Thu Nov 9 08:30:19 2017 -0500

Merge topic 'FindHDF5-c-version'

a6abb6c8 FindHDF5: Fix H5_VERSION on Patch in C

Acked-by: Kitware Robot 
Merge-request: !1465


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=05d8892e6113272c9b9ab73ceb9c8319e6690a25
commit 05d8892e6113272c9b9ab73ceb9c8319e6690a25
Merge: 0682e77 7e89602
Author: Brad King 
AuthorDate: Thu Nov 9 13:28:23 2017 +
Commit: Kitware Robot 
CommitDate: Thu Nov 9 08:28:28 2017 -0500

Merge topic 'cmake-default-dir-install-permissions'

7e896029 CPack: enable setting default dir creation permissions
a4c82916 CPack test: expand output checking fallback
670ad047 Move file/dir permissions code to common file.
deeba85f CMake: enable setting default dir creation permissions

Acked-by: Kitware Robot 
Merge-request: !1433


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7e896029cd6bc0a19b7e0ed6fa7b876e0f1764b3
commit 7e896029cd6bc0a19b7e0ed6fa7b876e0f1764b3
Author: Domen Vrankar 
AuthorDate: Wed Nov 8 20:25:29 2017 +0100
Commit: Domen Vrankar 
CommitDate: Wed Nov 8 20:27:11 2017 +0100

CPack: enable setting default dir creation permissions

Introduces CPACK_DEFAULT_DIRECTORY_INSTALL_PERMISSIONS
variable which adds support for functionality introduced
by CMAKE_DEFAULT_DIRECTORY_INSTALL_PERMISSIONS variable.

Fixes #17333

# Conflicts:
#   Help/release/dev/cmake-default-dir-install-permissions.rst

diff --git a/Help/manual/cmake-variables.7.rst 
b/Help/manual/cmake-variables.7.rst
index 7f13046..1927c37 100644
--- a/Help/manual/cmake-variables.7.rst
+++ b/Help/manual/cmake-variables.7.rst
@@ -530,6 +530,7 @@ Variables for CPack
/variable/CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY
/variable/CPACK_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION
/variable/CPACK_INCLUDE_TOPLEVEL_DIRECTORY
+   /variable/CPACK_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
/variable/CPACK_INSTALL_SCRIPT
/variable/CPACK_PACKAGING_INSTALL_PREFIX
/variable/CPACK_SET_DESTDIR
diff --git a/Help/release/dev/cmake-default-dir-install-permissions.rst 
b/Help/release/dev/cmake-default-dir-install-permissions.rst
index 06f89e3..8325fda 100644
--- a/Help/release/dev/cmake-default-dir-install-permissions.rst
+++ b/Help/release/dev/cmake-default-dir-install-permissions.rst
@@ -5,3 +5,8 @@ cmake-default-dir-install-permissions
   to enable setting of default permissions for directories created implicitly
   during installation of files by :command:`install` and
   :command:`file(INSTALL)`.
+
+* The :variable:`CPACK_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS` variable was 
added
+  which serves the same purpose during packaging as the
+  :variable:`CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS` variable serves 
during
+  installation (e.g. ``make install``).
diff --git a/Help/variable/CPACK_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS.rst 
b/Help/variable/CPACK_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS.rst
new file mode 100644
index 000..83d5ce7
--- /dev/null
+++ b/Help/variable/CPACK_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS.rst
@@ -0,0 +1,11 

[Cmake-commits] CMake branch, release, updated. v3.10.0-rc4-10-g24ca336

2017-11-09 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, release has been updated
   via  24ca336981696c6f77a4eb965ccc79ad4c98a2c0 (commit)
   via  a6abb6c8b63434d1794a8fd6ae1d5f5fa2dc85f3 (commit)
  from  ddf485511bb1d5b9ff6a3c9b00e92707e3a99b1a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
---

Summary of changes:
 Modules/FindHDF5.cmake |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.10.0-rc4-269-g0682e77

2017-11-09 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  0682e77f3b65850d37d8d91533c62b30a348454b (commit)
   via  27b62fa4c564c1346bae6b957ba5cd6d9d32969c (commit)
  from  43edaee0ce663e4f1c2cfdfa4742450640a2f6e1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0682e77f3b65850d37d8d91533c62b30a348454b
commit 0682e77f3b65850d37d8d91533c62b30a348454b
Merge: 43edaee 27b62fa
Author: Brad King 
AuthorDate: Thu Nov 9 13:14:58 2017 +
Commit: Kitware Robot 
CommitDate: Thu Nov 9 08:15:09 2017 -0500

Merge topic 'fortran-flags-docstring'

27b62fa4 Fortran: Use same DOC for flags as other languages

Acked-by: Kitware Robot 
Merge-request: !1463


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=27b62fa4c564c1346bae6b957ba5cd6d9d32969c
commit 27b62fa4c564c1346bae6b957ba5cd6d9d32969c
Author: Christian Pfeiffer 
AuthorDate: Wed Nov 8 14:50:58 2017 +0100
Commit: Christian Pfeiffer 
CommitDate: Wed Nov 8 14:50:58 2017 +0100

Fortran: Use same DOC for flags as other languages

Currently, only Fortran uses the string "Flags for Fortran compiler",
whereas C, CXX, CUDA all use the same, more descriptive string.

diff --git a/Modules/CMakeFortranInformation.cmake 
b/Modules/CMakeFortranInformation.cmake
index 8005da6..b315d33 100644
--- a/Modules/CMakeFortranInformation.cmake
+++ b/Modules/CMakeFortranInformation.cmake
@@ -169,7 +169,7 @@ foreach(c "" _DEBUG _RELEASE _MINSIZEREL _RELWITHDEBINFO)
 endforeach()
 
 set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS_INIT}" CACHE STRING
- "Flags for Fortran compiler.")
+ "Flags used by the compiler during all build types.")
 
 include(CMakeCommonLanguageInclude)
 

---

Summary of changes:
 Modules/CMakeFortranInformation.cmake |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.10.0-rc4-267-g43edaee

2017-11-09 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  43edaee0ce663e4f1c2cfdfa4742450640a2f6e1 (commit)
   via  05e9f6ec52a2cb87b529ee41059d809446a8e50d (commit)
  from  1e9304bccb933956f8c8349f2dd89927dd0ec08b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=43edaee0ce663e4f1c2cfdfa4742450640a2f6e1
commit 43edaee0ce663e4f1c2cfdfa4742450640a2f6e1
Merge: 1e9304b 05e9f6e
Author: Brad King 
AuthorDate: Thu Nov 9 13:12:59 2017 +
Commit: Kitware Robot 
CommitDate: Thu Nov 9 08:13:07 2017 -0500

Merge topic 'contract-plplot'

05e9f6ec Tests: Add contract test for PLplot

Acked-by: Kitware Robot 
Merge-request: !1452


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=05e9f6ec52a2cb87b529ee41059d809446a8e50d
commit 05e9f6ec52a2cb87b529ee41059d809446a8e50d
Author: Brad King 
AuthorDate: Mon Nov 6 10:21:54 2017 -0500
Commit: Brad King 
CommitDate: Wed Nov 8 06:47:26 2017 -0500

Tests: Add contract test for PLplot

diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 1c69805..b9558f1 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -3396,6 +3396,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P 
${CMake_SOURCE_DIR}/Utilities/Release
   # sets "CMake_TEST_CONTRACT__" variables to configure
   # the code below.
   foreach(project
+  PLplot
   Trilinos
   VTK
   )
diff --git a/Tests/Contracts/PLplot/CMakeLists.txt 
b/Tests/Contracts/PLplot/CMakeLists.txt
new file mode 100644
index 000..b87b4c3
--- /dev/null
+++ b/Tests/Contracts/PLplot/CMakeLists.txt
@@ -0,0 +1,18 @@
+cmake_minimum_required(VERSION 3.9)
+project(PLplotDriver NONE)
+include(ExternalProject)
+include(${CMAKE_CURRENT_SOURCE_DIR}/../Home.cmake)
+set(PLplot_PREFIX "${HOME}/.cmake/Contracts/PLplot")
+file(REMOVE_RECURSE "${PLplot_PREFIX}")
+separate_arguments(PLplot_CMAKE_ARGS UNIX_COMMAND "${PLplot_CMAKE_FLAGS}")
+if(NOT PLplot_GIT_TAG)
+  set(PLplot_GIT_TAG "plplot-5.13.0")
+endif()
+ExternalProject_Add(PLplot
+  GIT_REPOSITORY "https://git.code.sf.net/p/plplot/plplot.git;
+  GIT_TAG "${PLplot_GIT_TAG}"
+  PREFIX "${PLplot_PREFIX}"
+  CMAKE_ARGS
+-DCMAKE_INSTALL_PREFIX=
+${PLplot_CMAKE_ARGS}
+  )
diff --git a/Tests/Contracts/PLplot/Configure.cmake 
b/Tests/Contracts/PLplot/Configure.cmake
new file mode 100644
index 000..83591d4
--- /dev/null
+++ b/Tests/Contracts/PLplot/Configure.cmake
@@ -0,0 +1,4 @@
+set(Contracts.PLplot_BUILD_OPTIONS
+  -DPLplot_CMAKE_FLAGS=${CMake_TEST_CONTRACT_PLplot_CMAKE_FLAGS}
+  -DPLplot_GIT_TAG=${CMake_TEST_CONTRACT_PLplot_GIT_TAG}
+  )

---

Summary of changes:
 Tests/CMakeLists.txt   |1 +
 Tests/Contracts/PLplot/CMakeLists.txt  |   18 ++
 Tests/Contracts/PLplot/Configure.cmake |4 
 3 files changed, 23 insertions(+)
 create mode 100644 Tests/Contracts/PLplot/CMakeLists.txt
 create mode 100644 Tests/Contracts/PLplot/Configure.cmake


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


Re: [CMake] find_library not finding libraries - why?

2017-11-09 Thread Cornelis Bockemühl
Thanks - that was it! Now CMake is happy - just a question of
seconds...

Regarcs, Cornelis

Am Donnerstag, den 09.11.2017, 09:30 + schrieb CHEVRIER, Marc:
> 
> 
> > The problem is on NAMES argument. You have to specify library names
without prefix. So
> Clp must be used rather than libClp.
> FIND_LIBRARY(CLP_LIBRARY   NAMES
> Clp   PATHS ${CLP_LIB} NO_DEFAULT_PATH)
> 
> 
> 
> 
>  
> 
> > > > From: CMake  on behalf of "cornelis@bockemue
hl.ch" 
> 
> Date: Thursday 9 November 2017 at 00:09
> 
> > > To: "cmake@cmake.org" 
> 
> Subject: [CMake] find_library not finding libraries - why?
> 
> 
> 
>  
> 
> 
> In a CMakeLists.txt I have the following lines of code:
> 
> 
> 
> # with this the user will be asked for a path that has then
> 
> # lib64 other subdirectories that are specified below
> 
> FIND_PATH(CLP_DIR libClp)
> 
> 
> 
> SET(CLP_LIB ${CLP_DIR}/lib64)
> 
> 
> 
> # after the user specified CLP_DIR this shows what is expected:
> 
> # the full path to the libraries, but...
> 
> message(AUTHOR_WARNING ${CLP_LIB})
> 
> 
> 
> > # with the following I think I cannot indicate more clearly where the
libraries actually are:
> 
> > FIND_LIBRARY(CLP_LIBRARY   NAMES libClp   PATHS ${CLP_LIB}
NO_DEFAULT_PATH)
> 
> > FIND_LIBRARY(COINUTILS_LIBRARY NAMES libCoinUtils PATHS ${CLP_LIB}
NO_DEFAULT_PATH)
> 
> > FIND_LIBRARY(OSI_LIBRARY   NAMES libOsi   PATHS ${CLP_LIB}
NO_DEFAULT_PATH)
> 
> > FIND_LIBRARY(OSICLP_LIBRARY    NAMES libOsiClp    PATHS ${CLP_LIB}
NO_DEFAULT_PATH)
> 
> 
> 
> # ...here everything comes as -NOTFOUND
> 
> message(AUTHOR_WARNING ${CLP_LIBRARY})
> 
> message(AUTHOR_WARNING ${COINUTILS_LIBRARY})
> 
> message(AUTHOR_WARNING ${OSI_LIBRARY})
> 
> message(AUTHOR_WARNING ${OSICLP_LIBRARY})
> 
> 
> 
> A dir for the indicated directory shows the following files:
> 
> 
> 
> -rwxrwxrwx 1 cornelis users 907  8. Nov 18:37 libClp.la
> 
> > lrwxrwxrwx 1 cornelis users  42  8. Nov 18:37 libClp.so ->
libClp.so.1.13.11
> 
> > lrwxrwxrwx 1 cornelis users  42  8. Nov 18:37 libClp.so.1 ->
libClp.so.1.13.11
> 
> -rwxrwxrwx 1 cornelis users 1887336  8. Nov 18:37 libClp.so.1.13.11
> 
> -rwxrwxrwx 1 cornelis users    1010  8. Nov 18:37 libClpSolver.la
> 
> > lrwxrwxrwx 1 cornelis users  54  8. Nov 18:37 libClpSolver.so ->
libClpSolver.so.1.13.11
> 
> > lrwxrwxrwx 1 cornelis users  54  8. Nov 18:37 libClpSolver.so.1
-> libClpSolver.so.1.13.11
> 
> > -rwxrwxrwx 1 cornelis users  415224  8. Nov 18:37
libClpSolver.so.1.13.11
> 
> -rwxrwxrwx 1 cornelis users 870  8. Nov 18:37 libCoinUtils.la
> 
> > lrwxrwxrwx 1 cornelis users  54  8. Nov 18:37 libCoinUtils.so ->
libCoinUtils.so.3.10.14
> 
> > lrwxrwxrwx 1 cornelis users  54  8. Nov 18:37 libCoinUtils.so.3
-> libCoinUtils.so.3.10.14
> 
> > -rwxrwxrwx 1 cornelis users 1416632  8. Nov 18:37
libCoinUtils.so.3.10.14
> 
> -rwxrwxrwx 1 cornelis users    1059  8. Nov 18:37 libOsiClp.la
> 
> > lrwxrwxrwx 1 cornelis users  48  8. Nov 18:37 libOsiClp.so ->
libOsiClp.so.1.13.11
> 
> > lrwxrwxrwx 1 cornelis users  48  8. Nov 18:37 libOsiClp.so.1 ->
libOsiClp.so.1.13.11
> 
> > -rwxrwxrwx 1 cornelis users  350080  8. Nov 18:37
libOsiClp.so.1.13.11
> 
> > -rwxrwxrwx 1 cornelis users    1038  8. Nov 18:37
libOsiCommonTests.la
> 
> > lrwxrwxrwx 1 cornelis users  62  8. Nov 18:37
libOsiCommonTests.so -> libOsiCommonTests.so.1.12.9
> 
> > lrwxrwxrwx 1 cornelis users  62  8. Nov 18:37
libOsiCommonTests.so.1 -> libOsiCommonTests.so.1.12.9
> 
> > -rwxrwxrwx 1 cornelis users  619392  8. Nov 18:37
libOsiCommonTests.so.1.12.9
> 
> -rwxrwxrwx 1 cornelis users 905  8. Nov 18:37 libOsi.la
> 
> > lrwxrwxrwx 1 cornelis users  40  8. Nov 18:37 libOsi.so ->
libOsi.so.1.12.9
> 
> > lrwxrwxrwx 1 cornelis users  40  8. Nov 18:37 libOsi.so.1 ->
libOsi.so.1.12.9
> 
> -rwxrwxrwx 1 cornelis users  400776  8. Nov 18:37 libOsi.so.1.12.9
> 
> drwxrwxrwx 1 cornelis users    4096  8. Nov 18:37 pkgconfig
> 
> 
> 
> so the libraries are obviously there!
> 
> 
> 
> Questions:
> 
> What am I doing wrong?
> 
> What did I possibly misunderstand regarding the find_library command?
> 
> 
> 
> Thanks for any helpful hints!
> 
> Cornelis
> 
> 
> 
> 
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake