Re: [CMake] Link to local glibc

2017-03-07 Thread Michele Portolan
I'll try and see if I can compile a gcc 4.9.3 chain on the CentOS 5 
machine (I need C++11).


The docker container looks interesting but I haven't used it yet: does 
it need some specific install on the target machine? I don't have any 
install rights on the Cento 5.11 machine


Thanks,


Michele


Le 07/03/2017 à 22:33, Chuck Atkins a écrit :
If you're using a newer Ubuntu environment, I'd suggest using a CentOS 
5 docker container.   Either that or the VM.


- Chuck

On Tue, Mar 7, 2017 at 1:53 PM, Marcel Loose > wrote:


Hi Michele,

This could become a painful exercise. You basically have two options:
1) Treat it as a cross-compilation project, or
2) Create a virtual machine running CentOS 5.8 and do the build there.
If I were you, I would go for the second option.

Cheers,
Marcel.

Op 07-03-17 om 17:56 schreef Michele Portolan:
> Hello,
>
> I build on a Ubuntu machine (kernel 4.4.0-64-generic), but I need my
> program to be executed on an old Cento 5.8 (kernel 2.6.18). I tried
> compiling with "-static" to have static linking, but when I try to
> execute I get "ERROR: Kernel too old!"
>
> I therefore locally compiled a glibc with support for kernel
2.6.18 ...
> but how can I have Cmake use it instead of the system one?
>
> Thanks,
>
>
> Michele
>



--

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







-- 

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

[Cmake-commits] CMake branch, master, updated. v3.8.0-rc2-397-gc87be0c

2017-03-07 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  c87be0c0358c4cad12cdcdea719e2f583f788bc8 (commit)
  from  52d39264b49c18f6f1e98a2348e69cd679e389bc (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:
 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, next, updated. v3.8.0-rc2-411-g4249d9d

2017-03-07 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, next has been updated
  discards  f8b3d1328b4e3c58c3958354dd15f74f1e138f07 (commit)
  discards  e66966fb2564ae0ec8eac4c1a710c34ba98033ba (commit)
  discards  0d5670a71e54e7d0fb387f2ff2c992fb251e3b91 (commit)
  discards  b51484f3bad25c2973be261f5487e6b01dd1497a (commit)
  discards  10340c212344a89f912dcda4da0ae458aebcc341 (commit)
  discards  648c956d3197677da768df3b7084ba2d12acc86b (commit)
   via  4249d9d0df008d317ff53d15ce59e414fdc94b8e (commit)
   via  084ef3fa069db8beceef0f8559072e65d0250da0 (commit)
   via  a75d0d94306d65887b0fe33280fac18ec61027bc (commit)
   via  7631d1b8d1e736aab6fe280da2a5bd885ccb4595 (commit)
   via  25d4c020e1351c7cc4f477c40ad75b28b8bec530 (commit)
   via  a7b13a9dfbeb92a3ac31c3ff68edb6870294e7fa (commit)
   via  c87be0c0358c4cad12cdcdea719e2f583f788bc8 (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (f8b3d1328b4e3c58c3958354dd15f74f1e138f07)
\
 N -- N -- N (4249d9d0df008d317ff53d15ce59e414fdc94b8e)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.

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=4249d9d0df008d317ff53d15ce59e414fdc94b8e
commit 4249d9d0df008d317ff53d15ce59e414fdc94b8e
Merge: 084ef3f 5b6d354
Author: Brad King 
AuthorDate: Tue Mar 7 20:26:16 2017 +
Commit: Kitware Robot 
CommitDate: Wed Mar 8 00:01:38 2017 -0500

Stage topic 'master'

Topic-id: 22785
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/532


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=084ef3fa069db8beceef0f8559072e65d0250da0
commit 084ef3fa069db8beceef0f8559072e65d0250da0
Merge: a75d0d9 613b3e4
Author: Brad King 
AuthorDate: Tue Mar 7 18:28:55 2017 +
Commit: Kitware Robot 
CommitDate: Wed Mar 8 00:01:38 2017 -0500

Stage topic 'cuda-test-spelling'

Topic-id: 22917
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/563


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a75d0d94306d65887b0fe33280fac18ec61027bc
commit a75d0d94306d65887b0fe33280fac18ec61027bc
Merge: 7631d1b f5c4dad
Author: Brad King 
AuthorDate: Tue Mar 7 16:53:40 2017 +
Commit: Kitware Robot 
CommitDate: Wed Mar 8 00:01:37 2017 -0500

Stage topic 'cmake-server-aix'

Topic-id: 22915
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/562


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7631d1b8d1e736aab6fe280da2a5bd885ccb4595
commit 7631d1b8d1e736aab6fe280da2a5bd885ccb4595
Merge: 25d4c02 322425f
Author: Brad King 
AuthorDate: Tue Mar 7 15:09:22 2017 +
Commit: Kitware Robot 
CommitDate: Wed Mar 8 00:01:37 2017 -0500

Stage topic 'target-type-ordering-comment'

Topic-id: 22907
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/560


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=25d4c020e1351c7cc4f477c40ad75b28b8bec530
commit 25d4c020e1351c7cc4f477c40ad75b28b8bec530
Merge: a7b13a9 bd8b540
Author: Brad King 
AuthorDate: Tue Mar 7 14:31:16 2017 +
Commit: Kitware Robot 
CommitDate: Wed Mar 8 00:01:37 2017 -0500

Stage topic 'fix_csharp_custom_targets'

Topic-id: 22903
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/557


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a7b13a9dfbeb92a3ac31c3ff68edb6870294e7fa
commit a7b13a9dfbeb92a3ac31c3ff68edb6870294e7fa
Merge: c87be0c e2f25d3
Author: Brad King 
AuthorDate: Tue Mar 7 14:27:10 2017 +
Commit: Kitware Robot 
CommitDate: Wed Mar 8 00:01:36 2017 -0500

Stage topic 'fix-static-assert'

Topic-id: 22892
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/555


---

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 branch, nightly-master, updated. v3.8.0-rc2-396-g52d3926

2017-03-07 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, nightly-master has been updated
   via  52d39264b49c18f6f1e98a2348e69cd679e389bc (commit)
   via  2927e437e0f6001270783958b5c3e447339e3cc7 (commit)
   via  b55e19dd1f6a4d679d36ba9f006a10c291f6b5db (commit)
   via  dca58fa27995e5579b8ff52efbc0a20d00f9918d (commit)
   via  3bccdd89c88864839a0c8d4ea56bd069c90fa02b (commit)
   via  e66eec143c86cb36bc468b78583f689840156d99 (commit)
   via  632534104c4c094d07ab085fc10f2e3e35961ae0 (commit)
   via  696c75e99124728d35339d1465e3e8edbed7fd04 (commit)
   via  1e1cb41c46d5247c437b384fa702cfe774aaf501 (commit)
   via  fda91f4099d4ebf1b53592e56a29694a7837810e (commit)
   via  eb44f00192f635fc209b37d35d57ebbcc453ce11 (commit)
   via  51fbaa30997d2bc22d3483065ea04165526dc025 (commit)
   via  ef3c319b971de36eabdc4180243a07e3581f84b7 (commit)
   via  7f9baf579033e13a25fb9c4db4c79d8f7bb0b47e (commit)
   via  81656b92107b798d2e78929042812248d12853be (commit)
   via  d9a7ef80aaff4373baf4c864c97efbbf20337dea (commit)
   via  89780663b3f64eddf7dda2b5565935b73d92c146 (commit)
   via  9cad44dce264b509afc4b50b540b3a8594cf3217 (commit)
   via  60274e1d94c8409f810332345339de5dd449056b (commit)
   via  8f2ad9c4a06029d6d2859119f957a83c6082b14e (commit)
   via  ea3bc1e5b04fd420c4627e520af2e913b88e1100 (commit)
   via  e3af6bec6733fb21206998c0c8f155e6d13b4367 (commit)
   via  699321bfd5a997aceb64649c83ce78044ce11cc1 (commit)
   via  a28ae16e3cd6d42ab068b5bc0bedf5725a6ce743 (commit)
   via  0d9a5baa0e96fb2d14838ebeb6a86eec62acf100 (commit)
   via  47dbe9267eea47e7be656da409a9ee8ced691422 (commit)
   via  6856c659efc46b1400e14a64cf98c71257e4b24f (commit)
   via  7cb89f6732845cb5d79f82d9ca8f260c9cdddaae (commit)
   via  c6bef559f308ea6715a3395562ee66e8f8825b9d (commit)
   via  c1ba262a978be2f033d72434b0106a771755660f (commit)
   via  485685fdd9dc4de8db8184c9f57f644575f1c129 (commit)
   via  aba92ffd92bb1cc4bbe898b7abe65347b0468d33 (commit)
   via  047a5e4d6656f362151b855b34c259708b8419ba (commit)
   via  89891bcb9e226cc6216227634d0272adbc080c72 (commit)
   via  c3304fa510fa0dba380190cfb775be2fafcd8527 (commit)
   via  09475c298b83cbbaae2ca7ba6f52c0fa74607568 (commit)
  from  9662b9efb747192b6825100e5d06fe63c0893484 (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:
 Help/dev/README.rst|8 +-
 Help/dev/review.rst|   18 +-
 Help/dev/testing.rst   |   42 ++
 Help/manual/cmake-variables.7.rst  |   52 +--
 Help/release/dev/cpack-sign-uninstaller.rst|5 +
 Modules/CPackNSIS.cmake|4 +
 Modules/FindHDF5.cmake |5 +
 Modules/NSIS.template.in   |   45 +-
 Source/CMakeLists.txt  |4 +
 Source/CMakeVersion.cmake  |2 +-
 Source/CPack/OSXScriptLauncher.cxx |1 -
 Source/CPack/cmCPackArchiveGenerator.cxx   |   10 +-
 Source/CPack/cmCPackGenerator.cxx  |4 +-
 Source/CTest/cmCTestBuildAndTestHandler.cxx|   14 +-
 Source/CTest/cmCTestBuildAndTestHandler.h  |2 +-
 Source/CTest/cmCTestCoverageHandler.cxx|   25 +-
 Source/CTest/cmCTestHandlerCommand.cxx |5 +-
 Source/CTest/cmCTestMultiProcessHandler.cxx|   11 +-
 Source/CTest/cmCTestRunTest.cxx|   19 +-
 Source/CTest/cmCTestSubmitHandler.cxx  |   13 +-
 Source/CTest/cmCTestTestHandler.cxx|   70 +--
 Source/cmCTest.cxx |2 -
 Source/cmDepends.cxx   |   14 +-
 Source/cmGlobalGenerator.cxx   |9 +-
 Source/cmLocalGenerator.cxx|   11 +-
 Source/cmMakefile.cxx  |   11 +-
 Source/cmQtAutoGeneratorCommon.cxx |  215 +
 Source/cmQtAutoGeneratorCommon.h   |   34 ++
 Source/cmQtAutoGeneratorInitializer.cxx|  486 
 Source/cmQtAutoGenerators.cxx  |  342 --
 Source/cmQtAutoGenerators.h|4 +-
 Source/cmWorkingDirectory.cxx  |   24 +
 Source/cmWorkingDirectory.h|   25 +
 Source/cmake.cxx   |   30 +-
 Tests/QtAutogen/CMakeLists.txt  

[Cmake-commits] CMake branch, nightly, updated. v3.8.0-rc2-410-gf8b3d13

2017-03-07 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, nightly has been updated
  discards  f7085d1fb3f0f477a9a2858d016d3164997e518c (commit)
  discards  4b2df493e05d9a3eff12ae8f974ea58309db70ae (commit)
  discards  97a7030c4fb2a0fe842086c4d6aba8b941318cbe (commit)
  discards  50566bc5816f03b5d0a29dd3f9d4228b698d9e39 (commit)
  discards  1347b2b9dfba766fab43e9f7daf88225862aa14d (commit)
  discards  88f3777b973b527a544fee2a222fb94c65524d41 (commit)
  discards  97fcafc7a9430bf83795702d078ae194767b0f7f (commit)
   via  f8b3d1328b4e3c58c3958354dd15f74f1e138f07 (commit)
   via  e66966fb2564ae0ec8eac4c1a710c34ba98033ba (commit)
   via  0d5670a71e54e7d0fb387f2ff2c992fb251e3b91 (commit)
   via  5b6d354f70e1faddb006a7c98479f5d655a07b87 (commit)
   via  bed9c73decfcda0366984d990045e588928440ec (commit)
   via  462cf254270fbd56bffc73b00dc28882fdb0bdd6 (commit)
   via  613b3e49a009c4b3c39909c803d2c8b383a8c14f (commit)
   via  f5c4dada1bf8bf6463d1128065b3f85e78935ecf (commit)
   via  b51484f3bad25c2973be261f5487e6b01dd1497a (commit)
   via  10340c212344a89f912dcda4da0ae458aebcc341 (commit)
   via  648c956d3197677da768df3b7084ba2d12acc86b (commit)
   via  52d39264b49c18f6f1e98a2348e69cd679e389bc (commit)
   via  2927e437e0f6001270783958b5c3e447339e3cc7 (commit)
   via  b55e19dd1f6a4d679d36ba9f006a10c291f6b5db (commit)
   via  bd8b5401cfb2088d5e5494d04236eda36278da8b (commit)
   via  322425faca3fa6dca1356cdcb4c44ea8d46bc32a (commit)
   via  dca58fa27995e5579b8ff52efbc0a20d00f9918d (commit)
   via  3bccdd89c88864839a0c8d4ea56bd069c90fa02b (commit)
   via  e66eec143c86cb36bc468b78583f689840156d99 (commit)
   via  632534104c4c094d07ab085fc10f2e3e35961ae0 (commit)
   via  696c75e99124728d35339d1465e3e8edbed7fd04 (commit)
   via  1e1cb41c46d5247c437b384fa702cfe774aaf501 (commit)
   via  fda91f4099d4ebf1b53592e56a29694a7837810e (commit)
   via  eb44f00192f635fc209b37d35d57ebbcc453ce11 (commit)
   via  51fbaa30997d2bc22d3483065ea04165526dc025 (commit)
   via  e2f25d3e8218fe0ae02680966b71cba8755d38de (commit)
   via  6856c659efc46b1400e14a64cf98c71257e4b24f (commit)
   via  7cb89f6732845cb5d79f82d9ca8f260c9cdddaae (commit)
   via  c1ba262a978be2f033d72434b0106a771755660f (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (f7085d1fb3f0f477a9a2858d016d3164997e518c)
\
 N -- N -- N (f8b3d1328b4e3c58c3958354dd15f74f1e138f07)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.

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:
 Help/command/find_library.rst  |   10 -
 Help/dev/README.rst|8 +++-
 Help/dev/review.rst|   18 +
 Help/dev/testing.rst   |   42 
 Help/manual/cmake-properties.7.rst |1 +
 ...PATHS.rst => FIND_LIBRARY_USE_LIBX32_PATHS.rst} |   14 +++
 Help/release/dev/x32-abi.rst   |6 +++
 .../CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX.rst   |1 +
 Modules/CMakeCompilerABI.h |4 ++
 Modules/CPackRPM.cmake |2 +-
 Modules/FindDevIL.cmake|6 +--
 Modules/FindGLEW.cmake |2 +-
 Modules/FindGTK2.cmake |2 +
 Modules/FindIce.cmake  |2 +-
 Modules/FindKDE3.cmake |2 +
 Modules/FindOpenAL.cmake   |2 +-
 Modules/FindPkgConfig.cmake|4 ++
 Modules/GetPrerequisites.cmake |2 +-
 Modules/Platform/UnixPaths.cmake   |1 +
 Modules/WriteCompilerDetectionHeader.cmake |   17 ++--
 Source/CMakeVersion.cmake  |2 +-
 Source/cmExportInstallFileGenerator.cxx|4 +-
 Source/cmFileMonitor.h |2 +
 Source/cmFindLibraryCommand.cxx|9 -
 Source/cmFindPackageCommand.cxx|   11 +
 Source/cmFindPackageCommand.h  |1 +

Re: [CMake] Link to local glibc

2017-03-07 Thread Chuck Atkins
If you're using a newer Ubuntu environment, I'd suggest using a CentOS 5
docker container.   Either that or the VM.

- Chuck

On Tue, Mar 7, 2017 at 1:53 PM, Marcel Loose  wrote:

> Hi Michele,
>
> This could become a painful exercise. You basically have two options:
> 1) Treat it as a cross-compilation project, or
> 2) Create a virtual machine running CentOS 5.8 and do the build there.
> If I were you, I would go for the second option.
>
> Cheers,
> Marcel.
>
> Op 07-03-17 om 17:56 schreef Michele Portolan:
> > Hello,
> >
> > I build on a Ubuntu machine (kernel 4.4.0-64-generic), but I need my
> > program to be executed on an old Cento 5.8 (kernel 2.6.18). I tried
> > compiling with "-static" to have static linking, but when I try to
> > execute I get "ERROR: Kernel too old!"
> >
> > I therefore locally compiled a glibc with support for kernel 2.6.18 ...
> > but how can I have Cmake use it instead of the system one?
> >
> > Thanks,
> >
> >
> > Michele
> >
>
>
>
> --
>
> 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
>
-- 

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

[Cmake-commits] CMake branch, next, updated. v3.8.0-rc2-410-gf8b3d13

2017-03-07 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, next has been updated
   via  f8b3d1328b4e3c58c3958354dd15f74f1e138f07 (commit)
   via  5b6d354f70e1faddb006a7c98479f5d655a07b87 (commit)
   via  bed9c73decfcda0366984d990045e588928440ec (commit)
   via  462cf254270fbd56bffc73b00dc28882fdb0bdd6 (commit)
  from  e66966fb2564ae0ec8eac4c1a710c34ba98033ba (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=f8b3d1328b4e3c58c3958354dd15f74f1e138f07
commit f8b3d1328b4e3c58c3958354dd15f74f1e138f07
Merge: e66966f 5b6d354
Author: Brad King 
AuthorDate: Tue Mar 7 20:26:16 2017 +
Commit: Kitware Robot 
CommitDate: Tue Mar 7 15:26:24 2017 -0500

Stage topic 'master'

Topic-id: 22785
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/532


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5b6d354f70e1faddb006a7c98479f5d655a07b87
commit 5b6d354f70e1faddb006a7c98479f5d655a07b87
Author: Brad King 
AuthorDate: Mon Mar 6 11:15:00 2017 -0500
Commit: Brad King 
CommitDate: Tue Mar 7 15:22:55 2017 -0500

Help: Add notes for topic 'x32-abi'

diff --git a/Help/release/dev/x32-abi.rst b/Help/release/dev/x32-abi.rst
new file mode 100644
index 000..7571fac
--- /dev/null
+++ b/Help/release/dev/x32-abi.rst
@@ -0,0 +1,6 @@
+x32-abi
+---
+
+* The :command:`find_library` command learned to search ``libx32`` paths
+  when the build targets the ``x32`` ABI.  See the
+  :prop_gbl:`FIND_LIBRARY_USE_LIBX32_PATHS` global property.

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=bed9c73decfcda0366984d990045e588928440ec
commit bed9c73decfcda0366984d990045e588928440ec
Author: Steven Newbury 
AuthorDate: Mon Feb 27 21:17:28 2017 +
Commit: Brad King 
CommitDate: Tue Mar 7 15:22:55 2017 -0500

Modules: Add x32-abi support to hard-coded paths

Update hard-coded library paths in bundled CMake Modules for libx32 as
used with x32-abi.

diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake
index 722ee15..b32feb5 100644
--- a/Modules/CPackRPM.cmake
+++ b/Modules/CPackRPM.cmake
@@ -1044,7 +1044,7 @@ function(cpack_rpm_prepare_content_list)
   endif()
 
   if(NOT DEFINED CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST)
-set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST /etc /etc/init.d /usr /usr/share 
/usr/share/doc /usr/bin /usr/lib /usr/lib64 /usr/include)
+set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST /etc /etc/init.d /usr /usr/share 
/usr/share/doc /usr/bin /usr/lib /usr/lib64 /usr/libx32 /usr/include)
 if(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION)
   if(CPACK_RPM_PACKAGE_DEBUG)
 message("CPackRPM:Debug: Adding 
${CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION} to builtin omit list.")
diff --git a/Modules/FindDevIL.cmake b/Modules/FindDevIL.cmake
index 45fab82..4b868a2 100644
--- a/Modules/FindDevIL.cmake
+++ b/Modules/FindDevIL.cmake
@@ -45,7 +45,7 @@ find_path(IL_INCLUDE_DIR il.h
 
 find_library(IL_LIBRARIES
   NAMES IL DEVIL
-  PATH_SUFFIXES lib64 lib lib32
+  PATH_SUFFIXES libx32 lib64 lib lib32
   DOC "The file that corresponds to the base il library."
 )
 
@@ -53,7 +53,7 @@ find_library(IL_LIBRARIES
 
 find_library(ILUT_LIBRARIES
   NAMES ILUT
-  PATH_SUFFIXES lib64 lib lib32
+  PATH_SUFFIXES libx32 lib64 lib lib32
   DOC "The file that corresponds to the il (system?) utility library."
 )
 
@@ -61,7 +61,7 @@ find_library(ILUT_LIBRARIES
 
 find_library(ILU_LIBRARIES
   NAMES ILU
-  PATH_SUFFIXES lib64 lib lib32
+  PATH_SUFFIXES libx32 lib64 lib lib32
   DOC "The file that corresponds to the il utility library."
 )
 
diff --git a/Modules/FindGLEW.cmake b/Modules/FindGLEW.cmake
index d8609e6..11e8724 100644
--- a/Modules/FindGLEW.cmake
+++ b/Modules/FindGLEW.cmake
@@ -27,7 +27,7 @@
 find_path(GLEW_INCLUDE_DIR GL/glew.h)
 
 if(NOT GLEW_LIBRARY)
-  find_library(GLEW_LIBRARY_RELEASE NAMES GLEW glew32 glew glew32s 
PATH_SUFFIXES lib64)
+  find_library(GLEW_LIBRARY_RELEASE NAMES GLEW glew32 glew glew32s 
PATH_SUFFIXES lib64 libx32)
   find_library(GLEW_LIBRARY_DEBUG NAMES GLEWd glew32d glewd PATH_SUFFIXES 
lib64)
 
   include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index 20d7924..2eca5f9 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -292,8 +292,10 @@ function(_GTK2_FIND_INCLUDE_DIR _var _hdr)
 find_path(GTK2_${_var}_INCLUDE_DIR ${_hdr}
 PATHS
 ${_gtk2_arch_dir}
+/usr/local/libx32
 

[Cmake-commits] CMake branch, next, updated. v3.8.0-rc2-406-ge66966f

2017-03-07 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, next has been updated
  discards  d0791d846e7e09fec819acb3660803cd286efa9e (commit)
  discards  f9867934158a7f067202d89dd683b1e8ed1010f3 (commit)
  discards  a2fbb872bbdf459b40c2c026077714d4aeeb33b5 (commit)
  discards  68df742d4488631167bbc292200ed467780c9883 (commit)
  discards  de6aa5e7332f9ff3715021d8bfef9bece407c6e3 (commit)
  discards  b0ad0c0397d0d1b415d907e3e4ebccf9e507125d (commit)
   via  e66966fb2564ae0ec8eac4c1a710c34ba98033ba (commit)
   via  0d5670a71e54e7d0fb387f2ff2c992fb251e3b91 (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (d0791d846e7e09fec819acb3660803cd286efa9e)
\
 N -- N -- N (e66966fb2564ae0ec8eac4c1a710c34ba98033ba)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.

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=e66966fb2564ae0ec8eac4c1a710c34ba98033ba
commit e66966fb2564ae0ec8eac4c1a710c34ba98033ba
Merge: 0d5670a 613b3e4
Author: Brad King 
AuthorDate: Tue Mar 7 18:28:55 2017 +
Commit: Kitware Robot 
CommitDate: Tue Mar 7 15:24:16 2017 -0500

Stage topic 'cuda-test-spelling'

Topic-id: 22917
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/563


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0d5670a71e54e7d0fb387f2ff2c992fb251e3b91
commit 0d5670a71e54e7d0fb387f2ff2c992fb251e3b91
Merge: b51484f f5c4dad
Author: Brad King 
AuthorDate: Tue Mar 7 16:53:40 2017 +
Commit: Kitware Robot 
CommitDate: Tue Mar 7 15:24:16 2017 -0500

Stage topic 'cmake-server-aix'

Topic-id: 22915
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/562


---

Summary of changes:
 Help/command/find_library.rst  |   10 +-
 Help/manual/cmake-properties.7.rst |1 -
 Help/prop_gbl/FIND_LIBRARY_USE_LIBX32_PATHS.rst|   12 
 Help/release/dev/x32-abi.rst   |6 --
 Help/variable/CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX.rst |1 -
 Modules/CMakeCompilerABI.h |4 
 Modules/CPackRPM.cmake |2 +-
 Modules/FindDevIL.cmake|6 +++---
 Modules/FindGLEW.cmake |2 +-
 Modules/FindGTK2.cmake |2 --
 Modules/FindIce.cmake  |2 +-
 Modules/FindKDE3.cmake |2 --
 Modules/FindOpenAL.cmake   |2 +-
 Modules/FindPkgConfig.cmake|4 
 Modules/GetPrerequisites.cmake |2 +-
 Modules/Platform/UnixPaths.cmake   |1 -
 Source/cmExportInstallFileGenerator.cxx|4 +---
 Source/cmFindLibraryCommand.cxx|9 +
 Source/cmFindPackageCommand.cxx|   11 ---
 Source/cmFindPackageCommand.h  |1 -
 Source/cmMakefile.cxx  |   16 
 Source/cmMakefile.h|2 --
 22 files changed, 11 insertions(+), 91 deletions(-)
 delete mode 100644 Help/prop_gbl/FIND_LIBRARY_USE_LIBX32_PATHS.rst
 delete mode 100644 Help/release/dev/x32-abi.rst


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


Re: [CMake] Link to local glibc

2017-03-07 Thread Marcel Loose
Hi Michele,

This could become a painful exercise. You basically have two options:
1) Treat it as a cross-compilation project, or
2) Create a virtual machine running CentOS 5.8 and do the build there.
If I were you, I would go for the second option.

Cheers,
Marcel.

Op 07-03-17 om 17:56 schreef Michele Portolan:
> Hello,
> 
> I build on a Ubuntu machine (kernel 4.4.0-64-generic), but I need my
> program to be executed on an old Cento 5.8 (kernel 2.6.18). I tried
> compiling with "-static" to have static linking, but when I try to
> execute I get "ERROR: Kernel too old!"
> 
> I therefore locally compiled a glibc with support for kernel 2.6.18 ...
> but how can I have Cmake use it instead of the system one?
> 
> Thanks,
> 
> 
> Michele
> 




signature.asc
Description: OpenPGP digital signature
-- 

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

[Cmake-commits] CMake branch, next, updated. v3.8.0-rc2-410-gd0791d8

2017-03-07 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, next has been updated
   via  d0791d846e7e09fec819acb3660803cd286efa9e (commit)
   via  613b3e49a009c4b3c39909c803d2c8b383a8c14f (commit)
  from  f9867934158a7f067202d89dd683b1e8ed1010f3 (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=d0791d846e7e09fec819acb3660803cd286efa9e
commit d0791d846e7e09fec819acb3660803cd286efa9e
Merge: f986793 613b3e4
Author: Brad King 
AuthorDate: Tue Mar 7 18:28:55 2017 +
Commit: Kitware Robot 
CommitDate: Tue Mar 7 13:28:58 2017 -0500

Stage topic 'cuda-test-spelling'

Topic-id: 22917
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/563


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=613b3e49a009c4b3c39909c803d2c8b383a8c14f
commit 613b3e49a009c4b3c39909c803d2c8b383a8c14f
Author: Brad King 
AuthorDate: Tue Mar 7 13:26:01 2017 -0500
Commit: Brad King 
CommitDate: Tue Mar 7 13:26:01 2017 -0500

CUDA: Fix spelling of CudaOnly.SeparateCompilation test targets

diff --git a/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt 
b/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt
index d134b96..420d7a9 100644
--- a/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt
+++ b/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt
@@ -12,22 +12,22 @@ project (CudaOnlySeparateCompilation CUDA)
 string(APPEND CMAKE_CUDA_FLAGS " -gencode arch=compute_30,code=compute_30")
 set(CMAKE_CXX_STANDARD 11)
 set(CMAKE_CUDA_STANDARD 11)
-add_library(CUDASerarateLibA STATIC file1.cu file2.cu file3.cu)
+add_library(CUDASeparateLibA STATIC file1.cu file2.cu file3.cu)
 
 #Having file4/file5 in a shared library causes serious problems
 #with the nvcc linker and it will generate bad entries that will
 #cause a segv when trying to run the executable
 #
-add_library(CUDASerarateLibB STATIC file4.cu file5.cu)
-target_link_libraries(CUDASerarateLibB PRIVATE CUDASerarateLibA)
+add_library(CUDASeparateLibB STATIC file4.cu file5.cu)
+target_link_libraries(CUDASeparateLibB PRIVATE CUDASeparateLibA)
 
 add_executable(CudaOnlySeparateCompilation main.cu)
-target_link_libraries(CudaOnlySeparateCompilation PRIVATE CUDASerarateLibB)
+target_link_libraries(CudaOnlySeparateCompilation PRIVATE CUDASeparateLibB)
 
-set_target_properties( CUDASerarateLibA
-   CUDASerarateLibB
+set_target_properties( CUDASeparateLibA
+   CUDASeparateLibB
PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
 
-set_target_properties( CUDASerarateLibA
-   CUDASerarateLibB
+set_target_properties( CUDASeparateLibA
+   CUDASeparateLibB
PROPERTIES POSITION_INDEPENDENT_CODE ON)

---

Summary of changes:
 Tests/CudaOnly/SeparateCompilation/CMakeLists.txt |   16 
 1 file changed, 8 insertions(+), 8 deletions(-)


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


[CMake] Link to local glibc

2017-03-07 Thread Michele Portolan

Hello,

I build on a Ubuntu machine (kernel 4.4.0-64-generic), but I need my 
program to be executed on an old Cento 5.8 (kernel 2.6.18). I tried 
compiling with "-static" to have static linking, but when I try to 
execute I get "ERROR: Kernel too old!"


I therefore locally compiled a glibc with support for kernel 2.6.18 ... 
but how can I have Cmake use it instead of the system one?


Thanks,


Michele

--

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


Re: [CMake] CMAKE_CXX_STANDARD_REQUIRED not working in helloworld

2017-03-07 Thread Winfried

Robert Maynard schreef op 07.03.2017 16:34:

The issue is that GCC 4.8 c++1y does offer support for some c++14
features ( https://gcc.gnu.org/projects/cxx-status.html#cxx14 ) and
therefore that is why you getting a compile time failure. You could
try using target_compile_features instead but it only verifies
language level features and is not aware of standard library features
such as std::string_literals.



Thanks for the clarification. I already tried setting the CXX_STANDARD 
and CXX_STANDARD_REQUIRED target compile features directly, but that 
gives the same result.

I will add an extra check for gcc >= 4.9.


--

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


[Cmake-commits] CMake branch, next, updated. v3.8.0-rc2-408-gf986793

2017-03-07 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, next has been updated
   via  f9867934158a7f067202d89dd683b1e8ed1010f3 (commit)
   via  f5c4dada1bf8bf6463d1128065b3f85e78935ecf (commit)
  from  a2fbb872bbdf459b40c2c026077714d4aeeb33b5 (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=f9867934158a7f067202d89dd683b1e8ed1010f3
commit f9867934158a7f067202d89dd683b1e8ed1010f3
Merge: a2fbb87 f5c4dad
Author: Brad King 
AuthorDate: Tue Mar 7 16:53:40 2017 +
Commit: Kitware Robot 
CommitDate: Tue Mar 7 11:53:43 2017 -0500

Stage topic 'cmake-server-aix'

Topic-id: 22915
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/562


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f5c4dada1bf8bf6463d1128065b3f85e78935ecf
commit f5c4dada1bf8bf6463d1128065b3f85e78935ecf
Author: Brad King 
AuthorDate: Tue Mar 7 11:50:17 2017 -0500
Commit: Brad King 
CommitDate: Tue Mar 7 11:50:17 2017 -0500

cmFileMonitor.h: Include cmConfigure.h first

We need this to make Large File Support definitions consistent with
other translation units.

diff --git a/Source/cmFileMonitor.h b/Source/cmFileMonitor.h
index 48169b8..2957328 100644
--- a/Source/cmFileMonitor.h
+++ b/Source/cmFileMonitor.h
@@ -2,6 +2,8 @@
file Copyright.txt or https://cmake.org/licensing for details.  */
 #pragma once
 
+#include  // IWYU pragma: keep
+
 #include 
 #include 
 #include 

---

Summary of changes:
 Source/cmFileMonitor.h |2 ++
 1 file changed, 2 insertions(+)


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


[Cmake-commits] CMake branch, next, updated. v3.8.0-rc2-406-ga2fbb87

2017-03-07 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, next has been updated
   via  a2fbb872bbdf459b40c2c026077714d4aeeb33b5 (commit)
   via  68df742d4488631167bbc292200ed467780c9883 (commit)
   via  de6aa5e7332f9ff3715021d8bfef9bece407c6e3 (commit)
   via  b0ad0c0397d0d1b415d907e3e4ebccf9e507125d (commit)
  from  b51484f3bad25c2973be261f5487e6b01dd1497a (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=a2fbb872bbdf459b40c2c026077714d4aeeb33b5
commit a2fbb872bbdf459b40c2c026077714d4aeeb33b5
Merge: b51484f 68df742
Author: Brad King 
AuthorDate: Tue Mar 7 16:42:14 2017 +
Commit: Kitware Robot 
CommitDate: Tue Mar 7 11:42:17 2017 -0500

Stage topic 'master'

Topic-id: 22785
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/532


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=68df742d4488631167bbc292200ed467780c9883
commit 68df742d4488631167bbc292200ed467780c9883
Author: Brad King 
AuthorDate: Mon Mar 6 11:15:00 2017 -0500
Commit: Brad King 
CommitDate: Tue Mar 7 11:40:52 2017 -0500

Help: Add notes for topic 'x32-abi'

diff --git a/Help/release/dev/x32-abi.rst b/Help/release/dev/x32-abi.rst
new file mode 100644
index 000..7571fac
--- /dev/null
+++ b/Help/release/dev/x32-abi.rst
@@ -0,0 +1,6 @@
+x32-abi
+---
+
+* The :command:`find_library` command learned to search ``libx32`` paths
+  when the build targets the ``x32`` ABI.  See the
+  :prop_gbl:`FIND_LIBRARY_USE_LIBX32_PATHS` global property.

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=de6aa5e7332f9ff3715021d8bfef9bece407c6e3
commit de6aa5e7332f9ff3715021d8bfef9bece407c6e3
Author: Steven Newbury 
AuthorDate: Mon Feb 27 21:17:28 2017 +
Commit: Brad King 
CommitDate: Tue Mar 7 11:40:51 2017 -0500

Modules: Add x32-abi support to hard-coded paths

Update hard-coded library paths in bundled CMake Modules for libx32 as
used with x32-abi.

diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake
index 722ee15..b32feb5 100644
--- a/Modules/CPackRPM.cmake
+++ b/Modules/CPackRPM.cmake
@@ -1044,7 +1044,7 @@ function(cpack_rpm_prepare_content_list)
   endif()
 
   if(NOT DEFINED CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST)
-set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST /etc /etc/init.d /usr /usr/share 
/usr/share/doc /usr/bin /usr/lib /usr/lib64 /usr/include)
+set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST /etc /etc/init.d /usr /usr/share 
/usr/share/doc /usr/bin /usr/lib /usr/lib64 /usr/libx32 /usr/include)
 if(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION)
   if(CPACK_RPM_PACKAGE_DEBUG)
 message("CPackRPM:Debug: Adding 
${CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION} to builtin omit list.")
diff --git a/Modules/FindDevIL.cmake b/Modules/FindDevIL.cmake
index 45fab82..4b868a2 100644
--- a/Modules/FindDevIL.cmake
+++ b/Modules/FindDevIL.cmake
@@ -45,7 +45,7 @@ find_path(IL_INCLUDE_DIR il.h
 
 find_library(IL_LIBRARIES
   NAMES IL DEVIL
-  PATH_SUFFIXES lib64 lib lib32
+  PATH_SUFFIXES libx32 lib64 lib lib32
   DOC "The file that corresponds to the base il library."
 )
 
@@ -53,7 +53,7 @@ find_library(IL_LIBRARIES
 
 find_library(ILUT_LIBRARIES
   NAMES ILUT
-  PATH_SUFFIXES lib64 lib lib32
+  PATH_SUFFIXES libx32 lib64 lib lib32
   DOC "The file that corresponds to the il (system?) utility library."
 )
 
@@ -61,7 +61,7 @@ find_library(ILUT_LIBRARIES
 
 find_library(ILU_LIBRARIES
   NAMES ILU
-  PATH_SUFFIXES lib64 lib lib32
+  PATH_SUFFIXES libx32 lib64 lib lib32
   DOC "The file that corresponds to the il utility library."
 )
 
diff --git a/Modules/FindGLEW.cmake b/Modules/FindGLEW.cmake
index d8609e6..11e8724 100644
--- a/Modules/FindGLEW.cmake
+++ b/Modules/FindGLEW.cmake
@@ -27,7 +27,7 @@
 find_path(GLEW_INCLUDE_DIR GL/glew.h)
 
 if(NOT GLEW_LIBRARY)
-  find_library(GLEW_LIBRARY_RELEASE NAMES GLEW glew32 glew glew32s 
PATH_SUFFIXES lib64)
+  find_library(GLEW_LIBRARY_RELEASE NAMES GLEW glew32 glew glew32s 
PATH_SUFFIXES lib64 libx32)
   find_library(GLEW_LIBRARY_DEBUG NAMES GLEWd glew32d glewd PATH_SUFFIXES 
lib64)
 
   include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index 20d7924..2eca5f9 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -292,8 +292,10 @@ function(_GTK2_FIND_INCLUDE_DIR _var _hdr)
 find_path(GTK2_${_var}_INCLUDE_DIR ${_hdr}
 PATHS
 ${_gtk2_arch_dir}
+/usr/local/libx32
 

[Cmake-commits] CMake branch, next, updated. v3.8.0-rc2-402-gb51484f

2017-03-07 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, next has been updated
  discards  fc4565fcf2b7c5537c78a3f521ccff04a86fa464 (commit)
  discards  ad772c20e46456021e257b87b9c405b026f0f3a4 (commit)
  discards  9f25e120b4805b612c7abada2c1a02096c878fce (commit)
   via  b51484f3bad25c2973be261f5487e6b01dd1497a (commit)
   via  10340c212344a89f912dcda4da0ae458aebcc341 (commit)
   via  648c956d3197677da768df3b7084ba2d12acc86b (commit)
   via  52d39264b49c18f6f1e98a2348e69cd679e389bc (commit)
   via  2927e437e0f6001270783958b5c3e447339e3cc7 (commit)
   via  b55e19dd1f6a4d679d36ba9f006a10c291f6b5db (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (fc4565fcf2b7c5537c78a3f521ccff04a86fa464)
\
 N -- N -- N (b51484f3bad25c2973be261f5487e6b01dd1497a)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.

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=b51484f3bad25c2973be261f5487e6b01dd1497a
commit b51484f3bad25c2973be261f5487e6b01dd1497a
Merge: 10340c2 322425f
Author: Brad King 
AuthorDate: Tue Mar 7 15:09:22 2017 +
Commit: Kitware Robot 
CommitDate: Tue Mar 7 11:24:32 2017 -0500

Stage topic 'target-type-ordering-comment'

Topic-id: 22907
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/560


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=10340c212344a89f912dcda4da0ae458aebcc341
commit 10340c212344a89f912dcda4da0ae458aebcc341
Merge: 648c956 bd8b540
Author: Brad King 
AuthorDate: Tue Mar 7 14:31:16 2017 +
Commit: Kitware Robot 
CommitDate: Tue Mar 7 11:24:32 2017 -0500

Stage topic 'fix_csharp_custom_targets'

Topic-id: 22903
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/557


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=648c956d3197677da768df3b7084ba2d12acc86b
commit 648c956d3197677da768df3b7084ba2d12acc86b
Merge: 52d3926 e2f25d3
Author: Brad King 
AuthorDate: Tue Mar 7 14:27:10 2017 +
Commit: Kitware Robot 
CommitDate: Tue Mar 7 11:24:31 2017 -0500

Stage topic 'fix-static-assert'

Topic-id: 22892
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/555


---

Summary of changes:
 Help/dev/README.rst  |8 ++--
 Help/dev/review.rst  |   18 ++
 Help/dev/testing.rst |   42 ++
 3 files changed, 58 insertions(+), 10 deletions(-)
 create mode 100644 Help/dev/testing.rst


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.8.0-rc2-396-g52d3926

2017-03-07 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  52d39264b49c18f6f1e98a2348e69cd679e389bc (commit)
   via  2927e437e0f6001270783958b5c3e447339e3cc7 (commit)
   via  b55e19dd1f6a4d679d36ba9f006a10c291f6b5db (commit)
  from  dca58fa27995e5579b8ff52efbc0a20d00f9918d (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:
 Help/dev/README.rst  |8 ++--
 Help/dev/review.rst  |   18 ++
 Help/dev/testing.rst |   42 ++
 3 files changed, 58 insertions(+), 10 deletions(-)
 create mode 100644 Help/dev/testing.rst


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


[CMake] Problem with VS2017 and CMakeGNUtoMS_lib.bat.in (cmake-3.8-rc2)

2017-03-07 Thread Thompson, KT
Hi,

I use the CMakeAddFortranSubdirectory feature in one of my projects.  This 
appears to be broken under Visual Studio 2017 Community Edition RC because 
CMake\share\cmake-3.8\Modules\Platform\GNUtoMS_lib.bat.in generates a batch 
file that contains:

call "C:\Program Files (x86)\Microsoft Visual 
Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"

and this batch function changes the current working directory to 
%USERPROFILE%/Source (unlike earlier versions) .  Has anyone else seen this?

I have fixed the issue by replacing the cmake provided GNUtoMS_lib.bat.in with

@echo off
set CWD=%CD%
call "@CMAKE_GNUtoMS_BAT@"
cd /d %CWD%
lib /machine:"@CMAKE_GNUtoMS_ARCH@" %*

I'm not sure if CMake needs to make this change more permanent or if this is a 
bug in VS2017.

-kt
-

-- 

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

Re: [CMake] CMAKE_CXX_STANDARD_REQUIRED not working in helloworld

2017-03-07 Thread Robert Maynard
The issue is that GCC 4.8 c++1y does offer support for some c++14
features ( https://gcc.gnu.org/projects/cxx-status.html#cxx14 ) and
therefore that is why you getting a compile time failure. You could
try using target_compile_features instead but it only verifies
language level features and is not aware of standard library features
such as std::string_literals.

On Tue, Mar 7, 2017 at 9:32 AM, Winfried  wrote:
> I am trying to let cmake exit with an error when the c++ compiler doesn't
> support at least the C++14 standard.
> According to the cmake documentation this should be possible with variables
> CMAKE_CXX_STANDARD and CMAKE_CXX_STANDARD_REQUIRED.
>
> However when I compile the simple helloworld example below with g++ 4.8
> (which has no C++14 support), cmake supplies the option -std=c++1y to g++
> and compilation fails.
> I expected CMake to stop during configure with an error.
>
> Can anybody see what I am doing wrong ?
>
> Thanks in advance,
> Winfried
>
>
> file main.cpp :
>
> #include 
> #include 
>
> using namespace std::string_literals;
>
> int main(int, char **)
> {
> std::cout << "Hello "s + "world!" << std::endl;
> return 0;
> }
>
>
>
> file CMakeLists.txt :
>
> project(reqstd_test)
> cmake_minimum_required(VERSION 3.7)
>
> set(CMAKE_CXX_STANDARD 14)
> set(CMAKE_CXX_STANDARD_REQUIRED ON)
> set(CMAKE_CXX_EXTENSIONS OFF)
>
> add_executable(hello main.cpp)
>
>
> cmake output:
> wdobbe@linux-wdobbe:/data/generated/cmake_std_req/build> cmake ..
> -- The C compiler identification is GNU 4.8.5
> -- The CXX compiler identification is GNU 4.8.5
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /data/generated/cmake_std_req/build
> wdobbe@linux-wdobbe:/data/generated/cmake_std_req/build>
>
>
> make output:
> wdobbe@linux-wdobbe:/data/generated/cmake_std_req/build> make VERBOSE=Y
> /home/wdobbe/install/cmake-3.8.0-rc2-Linux-x86_64/bin/cmake
> -H/data/generated/cmake_std_req -B/data/generated/cmake_std_req/build
> --check-build-system CMakeFiles/Makefile.cmake 0
> 
> [ 50%] Building CXX object CMakeFiles/hello.dir/main.cpp.o
> /usr/bin/c++-std=c++1y -o CMakeFiles/hello.dir/main.cpp.o -c
> /data/generated/cmake_std_req/main.cpp
> /data/generated/cmake_std_req/main.cpp:4:22: error: ‘string_literals’ is not
> a namespace-name
>  using namespace std::string_literals;
>   ^
> /data/generated/cmake_std_req/main.cpp:4:37: error: expected namespace-name
> before ‘;’ token
>  using namespace std::string_literals;
>  ^
> /data/generated/cmake_std_req/main.cpp: In function ‘int main(int, char**)’:
> /data/generated/cmake_std_req/main.cpp:8:18: error: unable to find string
> literal operator ‘operator"" s’
>  std::cout << "Hello "s + "world!" << std::endl;
>   ^
> CMakeFiles/hello.dir/build.make:62: recipe for target
> 'CMakeFiles/hello.dir/main.cpp.o' failed
> make[2]: *** [CMakeFiles/hello.dir/main.cpp.o] Error 1
> make[2]: Leaving directory '/data/generated/cmake_std_req/build'
> CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/hello.dir/all' failed
> make[1]: *** [CMakeFiles/hello.dir/all] Error 2
> make[1]: Leaving directory '/data/generated/cmake_std_req/build'
> Makefile:83: recipe for target 'all' failed
> make: *** [all] Error 2
>
> --
>
> 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
-- 

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 

[Cmake-commits] CMake branch, next, updated. v3.8.0-rc2-399-gfc4565f

2017-03-07 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, next has been updated
   via  fc4565fcf2b7c5537c78a3f521ccff04a86fa464 (commit)
   via  322425faca3fa6dca1356cdcb4c44ea8d46bc32a (commit)
  from  ad772c20e46456021e257b87b9c405b026f0f3a4 (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=fc4565fcf2b7c5537c78a3f521ccff04a86fa464
commit fc4565fcf2b7c5537c78a3f521ccff04a86fa464
Merge: ad772c2 322425f
Author: Brad King 
AuthorDate: Tue Mar 7 15:09:22 2017 +
Commit: Kitware Robot 
CommitDate: Tue Mar 7 10:09:24 2017 -0500

Stage topic 'target-type-ordering-comment'

Topic-id: 22907
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/560


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=322425faca3fa6dca1356cdcb4c44ea8d46bc32a
commit 322425faca3fa6dca1356cdcb4c44ea8d46bc32a
Author: Ben Boeckel 
AuthorDate: Tue Mar 7 09:30:07 2017 -0500
Commit: Ben Boeckel 
CommitDate: Tue Mar 7 09:30:07 2017 -0500

cmStateTypes: document that the ordering of targets is important

The ordering is assumed in many places throughout the code and
modification of the enumeration should be done carefully.

diff --git a/Source/cmStateTypes.h b/Source/cmStateTypes.h
index 2c974c1..da14cdb 100644
--- a/Source/cmStateTypes.h
+++ b/Source/cmStateTypes.h
@@ -27,6 +27,9 @@ enum SnapshotType
   VariableScopeType
 };
 
+// There are multiple overlapping ranges represented here. Be aware that adding
+// a value to this enumeration may cause failures in numerous places which
+// assume details about the ordering.
 enum TargetType
 {
   EXECUTABLE,

---

Summary of changes:
 Source/cmStateTypes.h |3 +++
 1 file changed, 3 insertions(+)


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


[CMake] CMAKE_CXX_STANDARD_REQUIRED not working in helloworld

2017-03-07 Thread Winfried
I am trying to let cmake exit with an error when the c++ compiler 
doesn't support at least the C++14 standard.
According to the cmake documentation this should be possible with 
variables CMAKE_CXX_STANDARD and CMAKE_CXX_STANDARD_REQUIRED.


However when I compile the simple helloworld example below with g++ 4.8 
(which has no C++14 support), cmake supplies the option -std=c++1y to 
g++ and compilation fails.

I expected CMake to stop during configure with an error.

Can anybody see what I am doing wrong ?

Thanks in advance,
Winfried


file main.cpp :

#include 
#include 

using namespace std::string_literals;

int main(int, char **)
{
std::cout << "Hello "s + "world!" << std::endl;
return 0;
}



file CMakeLists.txt :

project(reqstd_test)
cmake_minimum_required(VERSION 3.7)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

add_executable(hello main.cpp)


cmake output:
wdobbe@linux-wdobbe:/data/generated/cmake_std_req/build> cmake ..
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /data/generated/cmake_std_req/build
wdobbe@linux-wdobbe:/data/generated/cmake_std_req/build>


make output:
wdobbe@linux-wdobbe:/data/generated/cmake_std_req/build> make VERBOSE=Y
/home/wdobbe/install/cmake-3.8.0-rc2-Linux-x86_64/bin/cmake 
-H/data/generated/cmake_std_req -B/data/generated/cmake_std_req/build 
--check-build-system CMakeFiles/Makefile.cmake 0


[ 50%] Building CXX object CMakeFiles/hello.dir/main.cpp.o
/usr/bin/c++-std=c++1y -o CMakeFiles/hello.dir/main.cpp.o -c 
/data/generated/cmake_std_req/main.cpp
/data/generated/cmake_std_req/main.cpp:4:22: error: ‘string_literals’ is 
not a namespace-name

 using namespace std::string_literals;
  ^
/data/generated/cmake_std_req/main.cpp:4:37: error: expected 
namespace-name before ‘;’ token

 using namespace std::string_literals;
 ^
/data/generated/cmake_std_req/main.cpp: In function ‘int main(int, 
char**)’:
/data/generated/cmake_std_req/main.cpp:8:18: error: unable to find 
string literal operator ‘operator"" s’

 std::cout << "Hello "s + "world!" << std::endl;
  ^
CMakeFiles/hello.dir/build.make:62: recipe for target 
'CMakeFiles/hello.dir/main.cpp.o' failed

make[2]: *** [CMakeFiles/hello.dir/main.cpp.o] Error 1
make[2]: Leaving directory '/data/generated/cmake_std_req/build'
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/hello.dir/all' 
failed

make[1]: *** [CMakeFiles/hello.dir/all] Error 2
make[1]: Leaving directory '/data/generated/cmake_std_req/build'
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

--

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

[Cmake-commits] CMake branch, next, updated. v3.8.0-rc2-397-gad772c2

2017-03-07 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, next has been updated
   via  ad772c20e46456021e257b87b9c405b026f0f3a4 (commit)
   via  bd8b5401cfb2088d5e5494d04236eda36278da8b (commit)
   via  9f25e120b4805b612c7abada2c1a02096c878fce (commit)
   via  e2f25d3e8218fe0ae02680966b71cba8755d38de (commit)
  from  dca58fa27995e5579b8ff52efbc0a20d00f9918d (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=ad772c20e46456021e257b87b9c405b026f0f3a4
commit ad772c20e46456021e257b87b9c405b026f0f3a4
Merge: 9f25e12 bd8b540
Author: Brad King 
AuthorDate: Tue Mar 7 14:31:16 2017 +
Commit: Kitware Robot 
CommitDate: Tue Mar 7 09:31:18 2017 -0500

Stage topic 'fix_csharp_custom_targets'

Topic-id: 22903
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/557


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=bd8b5401cfb2088d5e5494d04236eda36278da8b
commit bd8b5401cfb2088d5e5494d04236eda36278da8b
Author: Michael Stürmer 
AuthorDate: Tue Mar 7 11:40:31 2017 +0100
Commit: Brad King 
CommitDate: Tue Mar 7 09:30:27 2017 -0500

VS: Do not treat custom targets as CSharp targets

Fixes: #16697

diff --git a/Source/cmGlobalVisualStudioGenerator.cxx 
b/Source/cmGlobalVisualStudioGenerator.cxx
index cc2536c..ced0c26 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -750,6 +750,10 @@ bool cmGlobalVisualStudioGenerator::TargetIsCSharpOnly(
 if (!gt->GetConfigCommonSourceFiles(sources)) {
   return false;
 }
+// Only "real" targets are allowed to be C# targets.
+if (gt->Target->GetType() > cmStateEnums::OBJECT_LIBRARY) {
+  return false;
+}
   }
   gt->GetLanguages(languages, "");
   if (languages.size() == 1) {

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9f25e120b4805b612c7abada2c1a02096c878fce
commit 9f25e120b4805b612c7abada2c1a02096c878fce
Merge: dca58fa e2f25d3
Author: Brad King 
AuthorDate: Tue Mar 7 14:27:10 2017 +
Commit: Kitware Robot 
CommitDate: Tue Mar 7 09:27:13 2017 -0500

Stage topic 'fix-static-assert'

Topic-id: 22892
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/555


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e2f25d3e8218fe0ae02680966b71cba8755d38de
commit e2f25d3e8218fe0ae02680966b71cba8755d38de
Author: Daniel Pfeifer 
AuthorDate: Mon Mar 6 20:52:09 2017 +0100
Commit: Daniel Pfeifer 
CommitDate: Mon Mar 6 20:52:09 2017 +0100

WriteCompilerDetectionHeader: fix STATIC_ASSERT

fixes #16185

diff --git a/Modules/WriteCompilerDetectionHeader.cmake 
b/Modules/WriteCompilerDetectionHeader.cmake
index 0b16aa4..362099e 100644
--- a/Modules/WriteCompilerDetectionHeader.cmake
+++ b/Modules/WriteCompilerDetectionHeader.cmake
@@ -503,10 +503,19 @@ function(write_compiler_detection_header
   if (feature STREQUAL cxx_static_assert)
 set(def_value "${prefix_arg}_STATIC_ASSERT(X)")
 set(def_value_msg "${prefix_arg}_STATIC_ASSERT_MSG(X, MSG)")
-set(static_assert_struct "template struct 
${prefix_arg}StaticAssert;\ntemplate<> struct 
${prefix_arg}StaticAssert{};\n")
-set(def_standard "#define ${def_value} static_assert(X, #X)\n#
define ${def_value_msg} static_assert(X, MSG)")
-set(def_alternative "${static_assert_struct}#define ${def_value} 
sizeof(${prefix_arg}StaticAssert)\n#define ${def_value_msg} 
sizeof(${prefix_arg}StaticAssert)")
-string(APPEND file_content "#  if defined(${def_name}) && 
${def_name}\n${def_standard}\n#  else\n${def_alternative}\n#  endif\n\n")
+set(def_fallback "enum { 
${prefix_arg}_STATIC_ASSERT_JOIN(${prefix_arg}StaticAssertEnum, __LINE__) = 
sizeof(${prefix_arg}StaticAssert) }")
+string(APPEND file_content "#  if defined(${def_name}) && ${def_name}
+#define ${def_value} static_assert(X, #X)
+#define ${def_value_msg} static_assert(X, MSG)
+#  else
+#define ${prefix_arg}_STATIC_ASSERT_JOIN(X, Y) 
${prefix_arg}_STATIC_ASSERT_JOIN_IMPL(X, Y)
+#define ${prefix_arg}_STATIC_ASSERT_JOIN_IMPL(X, Y) X##Y
+template struct ${prefix_arg}StaticAssert;
+template<> struct ${prefix_arg}StaticAssert{};
+#define ${def_value} ${def_fallback}
+#define ${def_value_msg} ${def_fallback}
+#  endif
+\n")
   endif()
   if (feature STREQUAL cxx_alignas)
 set(def_value "${prefix_arg}_ALIGNAS(X)")
diff --git 

[Cmake-commits] CMake branch, dashboard, updated. 11006a894ef27738942c08abc300f15906c0e5c9

2017-03-07 Thread Brad King
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, dashboard has been updated
   via  11006a894ef27738942c08abc300f15906c0e5c9 (commit)
   via  6ae8f7ee32e6651dee7649d198c28c3a7c3694d7 (commit)
  from  0130a0f3e753f27bca5c07350a634f2d65f20a06 (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=11006a894ef27738942c08abc300f15906c0e5c9
commit 11006a894ef27738942c08abc300f15906c0e5c9
Author: Brad King 
AuthorDate: Wed Mar 1 16:27:15 2017 -0500
Commit: Brad King 
CommitDate: Tue Mar 7 08:51:45 2017 -0500

cmake_common: Implement nightly testing for stage-based workflow

CMake is moving away from a manually-maintained `next` branch to a model
where we maintain a "stage" for each target branch (e.g. `master`) that
consists of the target branch plus some set of MRs merged on top of it.
The job of this testing script is now to test one of the integration
branches or one of their stage branches.  Add infrastructure to create
or convert the local test repository such that it has tracking branches
for each stage branch.  Select one to check out and follow for testing.

diff --git a/cmake_common.cmake b/cmake_common.cmake
index f702043..075920d 100644
--- a/cmake_common.cmake
+++ b/cmake_common.cmake
@@ -134,13 +134,22 @@ endif()
 
 # Select Git source to use.
 if(NOT DEFINED dashboard_git_url)
-  set(dashboard_git_url "git://cmake.org/cmake.git")
+  set(dashboard_git_url "https://gitlab.kitware.com/cmake/cmake.git;)
 endif()
 if(NOT DEFINED dashboard_git_branch)
   if("${dashboard_model}" STREQUAL "Nightly")
-set(dashboard_git_branch nightly)
+set(dashboard_git_branch stage/master/nightly/latest)
   else()
-set(dashboard_git_branch next)
+set(dashboard_git_branch stage/master/head)
+  endif()
+else()
+  # map values from outdated client scripts
+  if(dashboard_git_branch STREQUAL "nightly-master")
+set(dashboard_git_branch follow/master/nightly)
+  elseif(dashboard_git_branch STREQUAL "nightly")
+set(dashboard_git_branch stage/master/nightly/latest)
+  elseif(dashboard_git_branch STREQUAL "next")
+set(dashboard_git_branch stage/master/head)
   endif()
 endif()
 if(NOT DEFINED dashboard_git_crlf)
@@ -180,6 +189,18 @@ if(NOT DEFINED CTEST_BINARY_DIRECTORY)
   endif()
 endif()
 
+macro(dashboard_git)
+  execute_process(
+COMMAND ${CTEST_GIT_COMMAND} ${ARGN}
+WORKING_DIRECTORY "${CTEST_SOURCE_DIRECTORY}"
+OUTPUT_VARIABLE dashboard_git_output
+ERROR_VARIABLE dashboard_git_output
+RESULT_VARIABLE dashboard_git_failed
+OUTPUT_STRIP_TRAILING_WHITESPACE
+ERROR_STRIP_TRAILING_WHITESPACE
+)
+endmacro()
+
 # Delete source tree if it is incompatible with current VCS.
 if(EXISTS ${CTEST_SOURCE_DIRECTORY})
   if(NOT EXISTS "${CTEST_SOURCE_DIRECTORY}/.git")
@@ -202,6 +223,13 @@ if(EXISTS ${CTEST_SOURCE_DIRECTORY})
   endif()
 endif()
 
+# Upstream non-head refs to treat like branches.
+set(dashboard_git_extra_branches
+  stage/master/head  # topics staged on master continuously
+  stage/master/nightly/latest# updated nightly to stage/master/head
+  follow/master/nightly  # updated nightly to master
+  )
+
 # Support initial checkout if necessary.
 if(NOT EXISTS "${CTEST_SOURCE_DIRECTORY}"
 AND NOT DEFINED CTEST_CHECKOUT_COMMAND)
@@ -210,7 +238,7 @@ if(NOT EXISTS "${CTEST_SOURCE_DIRECTORY}"
   set(ctest_checkout_script ${CTEST_DASHBOARD_ROOT}/${_name}-init.cmake)
   file(WRITE ${ctest_checkout_script} "# git repo init script for ${_name}
 execute_process(
-  COMMAND \"${CTEST_GIT_COMMAND}\" clone -n -b ${dashboard_git_branch} -- 
\"${dashboard_git_url}\"
+  COMMAND \"${CTEST_GIT_COMMAND}\" clone -n -- \"${dashboard_git_url}\"
   \"${CTEST_SOURCE_DIRECTORY}\"
   )
 if(EXISTS \"${CTEST_SOURCE_DIRECTORY}/.git\")
@@ -218,13 +246,75 @@ if(EXISTS \"${CTEST_SOURCE_DIRECTORY}/.git\")
 COMMAND \"${CTEST_GIT_COMMAND}\" config core.autocrlf ${dashboard_git_crlf}
 WORKING_DIRECTORY \"${CTEST_SOURCE_DIRECTORY}\"
 )
+  foreach(b ${dashboard_git_extra_branches})
+execute_process(
+  COMMAND \"${CTEST_GIT_COMMAND}\" config --add remote.origin.fetch 
+refs/\${b}:refs/remotes/origin/\${b}
+  WORKING_DIRECTORY \"${CTEST_SOURCE_DIRECTORY}\"
+  )
+  endforeach()
   execute_process(
-COMMAND \"${CTEST_GIT_COMMAND}\" checkout
+COMMAND \"${CTEST_GIT_COMMAND}\" fetch
+WORKING_DIRECTORY \"${CTEST_SOURCE_DIRECTORY}\"
+)
+  foreach(b ${dashboard_git_extra_branches})
+execute_process(
+  COMMAND \"${CTEST_GIT_COMMAND}\" branch \${b} origin/\${b}
+  

[Cmake-commits] CMake branch, master, updated. v3.8.0-rc2-393-gdca58fa

2017-03-07 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  dca58fa27995e5579b8ff52efbc0a20d00f9918d (commit)
   via  3bccdd89c88864839a0c8d4ea56bd069c90fa02b (commit)
   via  6856c659efc46b1400e14a64cf98c71257e4b24f (commit)
   via  7cb89f6732845cb5d79f82d9ca8f260c9cdddaae (commit)
   via  c1ba262a978be2f033d72434b0106a771755660f (commit)
   via  485685fdd9dc4de8db8184c9f57f644575f1c129 (commit)
  from  e66eec143c86cb36bc468b78583f689840156d99 (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:
 Source/cmLocalGenerator.cxx |   11 ---
 1 file changed, 4 insertions(+), 7 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, next, updated. v3.8.0-rc2-393-gdca58fa

2017-03-07 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, next has been updated
  discards  ff178a4937d09a5b0dc8b869abdc0b8d3a07fd57 (commit)
   via  dca58fa27995e5579b8ff52efbc0a20d00f9918d (commit)
   via  3bccdd89c88864839a0c8d4ea56bd069c90fa02b (commit)
   via  6856c659efc46b1400e14a64cf98c71257e4b24f (commit)
   via  7cb89f6732845cb5d79f82d9ca8f260c9cdddaae (commit)
   via  c1ba262a978be2f033d72434b0106a771755660f (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (ff178a4937d09a5b0dc8b869abdc0b8d3a07fd57)
\
 N -- N -- N (dca58fa27995e5579b8ff52efbc0a20d00f9918d)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.

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:


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.8.0-rc2-387-ge66eec1

2017-03-07 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  e66eec143c86cb36bc468b78583f689840156d99 (commit)
   via  632534104c4c094d07ab085fc10f2e3e35961ae0 (commit)
   via  696c75e99124728d35339d1465e3e8edbed7fd04 (commit)
   via  1e1cb41c46d5247c437b384fa702cfe774aaf501 (commit)
   via  fda91f4099d4ebf1b53592e56a29694a7837810e (commit)
   via  eb44f00192f635fc209b37d35d57ebbcc453ce11 (commit)
   via  ef3c319b971de36eabdc4180243a07e3581f84b7 (commit)
   via  7f9baf579033e13a25fb9c4db4c79d8f7bb0b47e (commit)
   via  81656b92107b798d2e78929042812248d12853be (commit)
   via  d9a7ef80aaff4373baf4c864c97efbbf20337dea (commit)
   via  89780663b3f64eddf7dda2b5565935b73d92c146 (commit)
   via  9cad44dce264b509afc4b50b540b3a8594cf3217 (commit)
   via  60274e1d94c8409f810332345339de5dd449056b (commit)
   via  8f2ad9c4a06029d6d2859119f957a83c6082b14e (commit)
   via  ea3bc1e5b04fd420c4627e520af2e913b88e1100 (commit)
   via  e3af6bec6733fb21206998c0c8f155e6d13b4367 (commit)
   via  699321bfd5a997aceb64649c83ce78044ce11cc1 (commit)
   via  a28ae16e3cd6d42ab068b5bc0bedf5725a6ce743 (commit)
   via  0d9a5baa0e96fb2d14838ebeb6a86eec62acf100 (commit)
   via  47dbe9267eea47e7be656da409a9ee8ced691422 (commit)
   via  c6bef559f308ea6715a3395562ee66e8f8825b9d (commit)
   via  aba92ffd92bb1cc4bbe898b7abe65347b0468d33 (commit)
   via  047a5e4d6656f362151b855b34c259708b8419ba (commit)
   via  89891bcb9e226cc6216227634d0272adbc080c72 (commit)
   via  c3304fa510fa0dba380190cfb775be2fafcd8527 (commit)
   via  09475c298b83cbbaae2ca7ba6f52c0fa74607568 (commit)
  from  51fbaa30997d2bc22d3483065ea04165526dc025 (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:
 Help/manual/cmake-variables.7.rst  |   52 +--
 Help/release/dev/cpack-sign-uninstaller.rst|5 +
 Modules/CPackNSIS.cmake|4 +
 Modules/FindHDF5.cmake |5 +
 Modules/NSIS.template.in   |   45 +-
 Source/CMakeLists.txt  |4 +
 Source/CPack/OSXScriptLauncher.cxx |1 -
 Source/CPack/cmCPackArchiveGenerator.cxx   |   10 +-
 Source/CPack/cmCPackGenerator.cxx  |4 +-
 Source/CTest/cmCTestBuildAndTestHandler.cxx|   14 +-
 Source/CTest/cmCTestBuildAndTestHandler.h  |2 +-
 Source/CTest/cmCTestCoverageHandler.cxx|   25 +-
 Source/CTest/cmCTestHandlerCommand.cxx |5 +-
 Source/CTest/cmCTestMultiProcessHandler.cxx|   11 +-
 Source/CTest/cmCTestRunTest.cxx|   19 +-
 Source/CTest/cmCTestSubmitHandler.cxx  |   13 +-
 Source/CTest/cmCTestTestHandler.cxx|   70 +--
 Source/cmCTest.cxx |2 -
 Source/cmDepends.cxx   |   14 +-
 Source/cmGlobalGenerator.cxx   |9 +-
 Source/cmMakefile.cxx  |   11 +-
 Source/cmQtAutoGeneratorCommon.cxx |  215 +
 Source/cmQtAutoGeneratorCommon.h   |   34 ++
 Source/cmQtAutoGeneratorInitializer.cxx|  486 
 Source/cmQtAutoGenerators.cxx  |  342 --
 Source/cmQtAutoGenerators.h|4 +-
 Source/cmWorkingDirectory.cxx  |   24 +
 Source/cmWorkingDirectory.h|   25 +
 Source/cmake.cxx   |   30 +-
 Tests/QtAutogen/CMakeLists.txt |   86 ++--
 Tests/QtAutogen/automoc_rerun/CMakeLists.txt   |   27 --
 Tests/QtAutogen/automoc_rerun/test1.cpp|5 -
 Tests/QtAutogen/automoc_rerun/test1.h.in1  |8 -
 Tests/QtAutogen/automoc_rerun/test1.h.in2  |7 -
 Tests/QtAutogen/autorcc_depends/CMakeLists.txt |   27 --
 Tests/QtAutogen/mocDepends/CMakeLists.txt  |   45 ++
 Tests/QtAutogen/mocDepends/invalid.hpp.in  |1 +
 Tests/QtAutogen/mocDepends/object.hpp.in   |   14 +
 Tests/QtAutogen/mocDepends/simpleLib.cpp.in|9 +
 Tests/QtAutogen/mocDepends/simpleLib.hpp.in|   11 +
 Tests/QtAutogen/mocDepends/test1.cpp   |9 +
 Tests/QtAutogen/mocDepends/test2.cpp   |   10 +
 Tests/QtAutogen/mocDepends/test2.hpp   |   16 +
 Tests/QtAutogen/mocRerun/CMakeLists.txt|   35 ++
 .../{automoc_rerun => mocRerun}/input.txt   

[Cmake-commits] CMake branch, next, updated. v3.8.0-rc2-389-gff178a4

2017-03-07 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, next has been updated
  discards  65a8510350df79126a75e47b2802f3e4abbcf1a7 (commit)
  discards  0a1f7d0add29311f655c9678060ff00b77f15217 (commit)
  discards  d67ee04d6f74d825aeb3fada193df7bddf265050 (commit)
  discards  6812265b2bcd709a925c8c7814fca05e2a8e2bd5 (commit)
  discards  4d64c639b23f07572b8fa8bf0d1cb1762cb6d8ed (commit)
  discards  09f73f330ed50e5f93c010d279edf2dccc79afb7 (commit)
  discards  97a7030c4fb2a0fe842086c4d6aba8b941318cbe (commit)
   via  ff178a4937d09a5b0dc8b869abdc0b8d3a07fd57 (commit)
   via  e66eec143c86cb36bc468b78583f689840156d99 (commit)
   via  632534104c4c094d07ab085fc10f2e3e35961ae0 (commit)
   via  696c75e99124728d35339d1465e3e8edbed7fd04 (commit)
   via  1e1cb41c46d5247c437b384fa702cfe774aaf501 (commit)
   via  fda91f4099d4ebf1b53592e56a29694a7837810e (commit)
   via  eb44f00192f635fc209b37d35d57ebbcc453ce11 (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (65a8510350df79126a75e47b2802f3e4abbcf1a7)
\
 N -- N -- N (ff178a4937d09a5b0dc8b869abdc0b8d3a07fd57)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.

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=ff178a4937d09a5b0dc8b869abdc0b8d3a07fd57
commit ff178a4937d09a5b0dc8b869abdc0b8d3a07fd57
Merge: e66eec1 485685f
Author: Brad King 
AuthorDate: Mon Mar 6 16:34:39 2017 +
Commit: Kitware Robot 
CommitDate: Tue Mar 7 08:24:46 2017 -0500

Stage topic 'revert-CTestTestfile-removal'

Topic-id: 22887
Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/553


---

Summary of changes:


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


[CMake] CPack WIX - disable feature by default

2017-03-07 Thread tonka tonka
Hello,



I’ve create an installer with cpack and WIX (cpack –G WIX). Everything
works fine, but I have one big problem.



I have 2 features, which are created by cpack(wix).





 

 





My Problem:

I want to deactivate the CM_C_dev feature by default (CPACK_WIX seems to
ignore my set(CPACK_COMPONENT_DEV_DISABLED ON)  ). The user should be able
to activate it if he/she wants that. I know how I can do it with WIX itself
(handmade), but I have big troubles to inject that into the cpack_wix flow.

I have to add Level=”2” to the Feature with the Id=”CM_C_DEV” like







or add a property (as value) like



DISABLE_FEATUREA



I’ve tried the CPACK_WIX_PATCH function, but I’m only able to add something
to the ProductRoot feature (ID=”ProductFeature”) via





  



  





But not into the subfeature CM_C_dev



Does anybody know how I can do that (or maybe another way)?
-- 

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

[CMake] libsndfile in windows

2017-03-07 Thread aishwarya selvaraj
​Hi all ,
I'm trying to compile a .cpp code of mine using cmake file in all the three
platforms.
I have successfully completed it in Linux software .
when I started to do it in windows I read across multiple documents which
mention that ​libsnd file cannot be built on windows using visual studio ,
instead its possible using MINGW , but there was support documents for the
same .
Has anyone already done something similiar .
Could you please provide some knowledge?


-- 
Regards,
Aishwarya Selvaraj
-- 

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