[cmake-developers] [ANNOUNCE] CMake merge process transition

2017-03-02 Thread Brad King
Hi Folks,

We're moving CMake's process for merging changes to new infrastructure
that is managed directly within merge requests on gitlab.kitware.com.


Summary
---

The new process for reviewing changes, staging them for nightly
testing, and eventually merging to `master` is documented in a new
`Help/dev/review.rst` file.  This document is drafted here:

 https://gitlab.kitware.com/cmake/cmake/merge_requests/542

Please take a look at the draft.  Once we have actually made the final
transition I'll merge the new instructions and post a link here to their
final URL.


Details
---

The rest of this message is primarily meant for those who had push
access to the old staging repository and/or run nightly builds.

Our contribution and review process currently works through GitLab
merge requests.  However, the actual merge to `next` or `master` has
still been done by manually pushing topic branches to our old staging
repository (cmake.org/stage/cmake.git) and commanding merge scripts
via ssh.  Our process for staging topics in `next` for the nightly
builds has worked well but requires tedious manual steps and makes
updating a topic with a fixup commit difficult.  We will drop `next`
and replace it with an automatically-maintained staging branch.

We currently have a bot that listens to GitLab merge request activity
and responds to commands like `Do: test` for topic testing.  The bot
is capable of much more.  It will soon be configured to respond to
`Do: stage` and `Do: unstage` commands that instruct it to add or
remove the branch associated with a MR to/from the staging branch
used for nightly testing.

The staging branch is always built from `master` plus a set of staged
MR topics.  When `master` is updated the entire staging branch is
rebuilt automatically.  When a staged MR is updated it is unstaged
automatically awaiting review and a new `Do: stage`.  This will hugely
simplify the process of staging a MR for nightly testing.

Furthermore, the staging branch will not be published as an official
branch under refs/heads/ on the gitlab.kitware.com/cmake/cmake repo.
Instead it will be in a custom refs/ path that Git does not clone or
fetch by default.  CTest scripts used to drive nightly testing will
need to be adapted for this.  I'll post more information for those of
you running nightly builds once we are ready to update the clients.

The bot will also gain a `Do: merge` command that I'll use to perform
the actual merges to `master`.  Its merge commit messages will have
more information than the current ones, and will refer back to the MRs
that created them.

-Brad
-- 

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


Re: [CMake] -DCMAKE_BUILD_TYPE=Release breaks build process

2017-03-02 Thread Alan W. Irwin

On 2017-03-02 13:01+0100 Bernhard Seckinger wrote:


Basically it's (works)

/usr/bin/gdc  -I.. -fversion=slang  -oCMakeFiles/starbattle.dir/__/puzzle
-c /home/berni/Croco/Entwicklung/Croco/types/puzzle.d
[...]
/usr/bin/gdc CMakeFiles/starbattle.dir/starbattle
CMakeFiles/starbattle.dir/starbattle_check_puzzle
CMakeFiles/starbattle.dir/starbattle_check_solution
CMakeFiles/starbattle.dir/__/puzzle
CMakeFiles/starbattle.dir/__/puzzle_options
CMakeFiles/starbattle.dir/__/puzzle_unittest
CMakeFiles/starbattle.dir/__/spf_tools CMakeFiles/starbattle.dir/__/puzzle_io
CMakeFiles/starbattle.dir/__/puzzle_timer CMakeFiles/starbattle.dir/__/slang
-ostarbattle  -L/usr/lib/gcc/x86_64-linux-gnu/6 ../libslang_wrapper.o.a
-lslang -lc

vs. (does not work)

/usr/bin/gdc  -O3 -fomit-frame-pointer -fweb -frelease -finline-functions
-I.. -fversion=slang  -oCMakeFiles/starbattle.dir/__/puzzle
-c /home/berni/Croco/Entwicklung/Croco/types/puzzle.d
[...]
/usr/bin/gdc  -O3 -fomit-frame-pointer -fweb -frelease -finline-functions
CMakeFiles/starbattle.dir/starbattle
CMakeFiles/starbattle.dir/starbattle_check_puzzle
CMakeFiles/starbattle.dir/starbattle_check_solution
CMakeFiles/starbattle.dir/__/puzzle
CMakeFiles/starbattle.dir/__/puzzle_options
CMakeFiles/starbattle.dir/__/puzzle_unittest
CMakeFiles/starbattle.dir/__/spf_tools CMakeFiles/starbattle.dir/__/puzzle_io
CMakeFiles/starbattle.dir/__/puzzle_timer CMakeFiles/starbattle.dir/__/slang
-ostarbattle  -L/usr/lib/gcc/x86_64-linux-gnu/6 ../libslang_wrapper.o.a
-lslang -lc

One can even remove "-fomit-frame-pointer -fweb -frelease -finline-functions"
and set -O1 instead of -O3 to get the same result.


Hi Bernhard:

The problem is that CMake has no native support for gdc so several
external projects have supplied that support.  For example, PLplot
(the project I am associated with) obtained our CMake support for gdc
from CMakeD (by Selman Ulug and Tim Burrell) a decade ago, and we have
been tweaking it ever since for just our own needs, but we have no
interest in supporting CMakeD for others because the strong impression
I have is that project has been superseded by other projects which we
intend to move to eventually once we have evaluated them.

It appears you are using https://github.com/dcarp/cmake-d for CMake
gdc support which as far as I can tell (e.g., from the license which
does not mention Ulug or Burrel) is completely different from CMakeD.
Anyhow, you should contact the authors of cmake-d with your bug report
and/or try other modern possibilities revealed by, say, a google
search for the terms .

My advice for putting together that bug report is to create the
simplest standalone example of the problem that is possible (e.g.,
consiting of a CMakeLists.txt file that builds and installs a "hello,
world" D application + D language source code for that application.

Then after configuring that simple test project with
-DCMAKE_BUILD_TYPE=Release, run "make VERBOSE=1" which tells you
exactly the commands that were executed which lead to the linking
error.  Afterward replicate that last (gdc)
command that generated the linker error by hand, and then start
changing (by hand) the gdc options until you isolate the one that is
causing the linker issue.

Assuming you isolate the issue that way, then you have demonstrated a
bug in your particular CMake support for gdc for the
-DCMAKE_BUILD_TYPE=Release case which you should report to the authors
of your CMake gdc support.  That simple self-contained example will be
a big help to them in replicating the issue and figuring it out.  And
if they are not responsive to your bug report, perhaps it is time to
move to some other CMake gdc support project which is more responsive
or which does not have the issue with -DCMAKE_BUILD_TYPE=Release that
you have found with the cmake-d project.

Good luck, and I would appreciate you sharing with me (and possibly
this list) how it goes since I am interested in trying something
different from a tweaked CMakeD for gdc language support in
the CMake-based PLplot build system.

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: 

[Cmake-commits] CMake branch, next, updated. v3.8.0-rc1-750-gb1cf272

2017-03-02 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, next has been updated
   via  b1cf272646abab16e53bc3e7083629ee23ec089d (commit)
   via  06ef23c3e0abf79f451cf69fbd3ac646b7e17c27 (commit)
   via  fce6233d8be9ed70989875460ee7628f55788554 (commit)
  from  83242107ad6514dff6a8b6946467838f4d4104be (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=b1cf272646abab16e53bc3e7083629ee23ec089d
commit b1cf272646abab16e53bc3e7083629ee23ec089d
Merge: 8324210 06ef23c
Author: Brad King 
AuthorDate: Thu Mar 2 10:04:22 2017 -0500
Commit: Brad King 
CommitDate: Thu Mar 2 10:04:22 2017 -0500

Merge branch 'master' into next


---

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-rc1-395-g06ef23c

2017-03-02 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, master has been updated
   via  06ef23c3e0abf79f451cf69fbd3ac646b7e17c27 (commit)
   via  fce6233d8be9ed70989875460ee7628f55788554 (commit)
  from  c1fb7213edaf512774eb74adb0a89b4984f88904 (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:


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-rc1-747-g8324210

2017-03-02 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, next has been updated
   via  83242107ad6514dff6a8b6946467838f4d4104be (commit)
   via  8e58f360f53eab991debe507c669595cec7f07fa (commit)
  from  3bf5d33ba90dc3478a928f47507e004d905b7d87 (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=83242107ad6514dff6a8b6946467838f4d4104be
commit 83242107ad6514dff6a8b6946467838f4d4104be
Merge: 3bf5d33 8e58f36
Author: Brad King 
AuthorDate: Thu Mar 2 10:03:46 2017 -0500
Commit: CMake Topic Stage 
CommitDate: Thu Mar 2 10:03:46 2017 -0500

Merge topic 'FindVulkan-update' into next

8e58f360 FindVulkan: Update for LunarG SDK import library location on 
Windows


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8e58f360f53eab991debe507c669595cec7f07fa
commit 8e58f360f53eab991debe507c669595cec7f07fa
Author: Brad Davis 
AuthorDate: Wed Mar 1 17:56:22 2017 -0500
Commit: Brad King 
CommitDate: Thu Mar 2 10:02:20 2017 -0500

FindVulkan: Update for LunarG SDK import library location on Windows

As of at least 1.0.42 of the LunarG SDK, the `vulkan-1.lib` import
library on Windows is stored in `${VULKAN_SDK}/Lib` or
`${VULKAN_SDK}/Lib32`.

diff --git a/Modules/FindVulkan.cmake b/Modules/FindVulkan.cmake
index 820e0eb..0be9f97 100644
--- a/Modules/FindVulkan.cmake
+++ b/Modules/FindVulkan.cmake
@@ -39,12 +39,16 @@ if(WIN32)
 find_library(Vulkan_LIBRARY
   NAMES vulkan-1
   PATHS
-"$ENV{VULKAN_SDK}/Bin")
+"$ENV{VULKAN_SDK}/Lib"
+"$ENV{VULKAN_SDK}/Bin"
+)
   elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
 find_library(Vulkan_LIBRARY
   NAMES vulkan-1
   PATHS
-"$ENV{VULKAN_SDK}/Bin32")
+"$ENV{VULKAN_SDK}/Lib32"
+"$ENV{VULKAN_SDK}/Bin32"
+)
   endif()
 else()
 find_path(Vulkan_INCLUDE_DIR

---

Summary of changes:
 Modules/FindVulkan.cmake |8 ++--
 1 file changed, 6 insertions(+), 2 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-rc1-745-g3bf5d33

2017-03-02 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, next has been updated
   via  3bf5d33ba90dc3478a928f47507e004d905b7d87 (commit)
   via  6b6191d8754fd6a805a83c2a10f521aa92e26175 (commit)
  from  b1b6156cca4068dee0cfd0ec9c1fd6f2e7513db5 (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=3bf5d33ba90dc3478a928f47507e004d905b7d87
commit 3bf5d33ba90dc3478a928f47507e004d905b7d87
Merge: b1b6156 6b6191d
Author: Brad King 
AuthorDate: Thu Mar 2 09:56:38 2017 -0500
Commit: CMake Topic Stage 
CommitDate: Thu Mar 2 09:56:38 2017 -0500

Merge topic 'ipo-variable' into next

6b6191d8 Add variable 'CMAKE_INTERPROCEDURAL_OPTIMIZATION'


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6b6191d8754fd6a805a83c2a10f521aa92e26175
commit 6b6191d8754fd6a805a83c2a10f521aa92e26175
Author: Ruslan Baratov 
AuthorDate: Mon Feb 27 19:00:43 2017 +0800
Commit: Brad King 
CommitDate: Thu Mar 2 09:37:39 2017 -0500

Add variable 'CMAKE_INTERPROCEDURAL_OPTIMIZATION'

diff --git a/Help/manual/cmake-variables.7.rst 
b/Help/manual/cmake-variables.7.rst
index 79c7cd8..d4fe0e4 100644
--- a/Help/manual/cmake-variables.7.rst
+++ b/Help/manual/cmake-variables.7.rst
@@ -285,6 +285,7 @@ Variables that Control the Build
/variable/CMAKE_INSTALL_NAME_DIR
/variable/CMAKE_INSTALL_RPATH
/variable/CMAKE_INSTALL_RPATH_USE_LINK_PATH
+   /variable/CMAKE_INTERPROCEDURAL_OPTIMIZATION
/variable/CMAKE_IOS_INSTALL_COMBINED
/variable/CMAKE_LANG_CLANG_TIDY
/variable/CMAKE_LANG_COMPILER_LAUNCHER
diff --git a/Help/prop_tgt/INTERPROCEDURAL_OPTIMIZATION.rst 
b/Help/prop_tgt/INTERPROCEDURAL_OPTIMIZATION.rst
index effa3b0..3f68c31 100644
--- a/Help/prop_tgt/INTERPROCEDURAL_OPTIMIZATION.rst
+++ b/Help/prop_tgt/INTERPROCEDURAL_OPTIMIZATION.rst
@@ -5,3 +5,7 @@ Enable interprocedural optimization for a target.
 
 If set to true, enables interprocedural optimizations if they are
 known to be supported by the compiler.
+
+This property is initialized by the
+:variable:`CMAKE_INTERPROCEDURAL_OPTIMIZATION` variable if it is set when a
+target is created.
diff --git a/Help/release/dev/CMAKE_INTERPROCEDURAL_OPTIMIZATION.rst 
b/Help/release/dev/CMAKE_INTERPROCEDURAL_OPTIMIZATION.rst
new file mode 100644
index 000..fc4f733
--- /dev/null
+++ b/Help/release/dev/CMAKE_INTERPROCEDURAL_OPTIMIZATION.rst
@@ -0,0 +1,6 @@
+CMAKE_INTERPROCEDURAL_OPTIMIZATION
+--
+
+* A :variable:`CMAKE_INTERPROCEDURAL_OPTIMIZATION` variable was added to
+  initialize the :prop_tgt:`INTERPROCEDURAL_OPTIMIZATION` property on all
+  targets.
diff --git a/Help/variable/CMAKE_INTERPROCEDURAL_OPTIMIZATION.rst 
b/Help/variable/CMAKE_INTERPROCEDURAL_OPTIMIZATION.rst
new file mode 100644
index 000..b0cbb62
--- /dev/null
+++ b/Help/variable/CMAKE_INTERPROCEDURAL_OPTIMIZATION.rst
@@ -0,0 +1,8 @@
+CMAKE_INTERPROCEDURAL_OPTIMIZATION
+--
+
+Default value for :prop_tgt:`INTERPROCEDURAL_OPTIMIZATION` of targets.
+
+This variable is used to initialize the 
:prop_tgt:`INTERPROCEDURAL_OPTIMIZATION`
+property on all the targets.  See that target property for additional
+information.
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index c360c19..e3c7b63 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -230,6 +230,7 @@ cmTarget::cmTarget(std::string const& name, 
cmStateEnums::TargetType type,
 this->SetPropertyDefault("INSTALL_NAME_DIR", CM_NULLPTR);
 this->SetPropertyDefault("INSTALL_RPATH", "");
 this->SetPropertyDefault("INSTALL_RPATH_USE_LINK_PATH", "OFF");
+this->SetPropertyDefault("INTERPROCEDURAL_OPTIMIZATION", CM_NULLPTR);
 this->SetPropertyDefault("SKIP_BUILD_RPATH", "OFF");
 this->SetPropertyDefault("BUILD_WITH_INSTALL_RPATH", "OFF");
 this->SetPropertyDefault("ARCHIVE_OUTPUT_DIRECTORY", CM_NULLPTR);

---

Summary of changes:
 Help/manual/cmake-variables.7.rst   |1 +
 Help/prop_tgt/INTERPROCEDURAL_OPTIMIZATION.rst  |4 
 Help/release/dev/CMAKE_INTERPROCEDURAL_OPTIMIZATION.rst |6 ++
 Help/variable/CMAKE_INTERPROCEDURAL_OPTIMIZATION.rst|8 
 Source/cmTarget.cxx |1 +
 5 files changed, 20 insertions(+)
 create mode 100644 Help/release/dev/CMAKE_INTERPROCEDURAL_OPTIMIZATION.rst
 create mode 100644 Help/variable/CMAKE_INTERPROCEDURAL_OPTIMIZATION.rst


hooks/post-receive
-- 
CMake

[Cmake-commits] CMake branch, next, updated. v3.8.0-rc1-743-gb1b6156

2017-03-02 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, next has been updated
   via  b1b6156cca4068dee0cfd0ec9c1fd6f2e7513db5 (commit)
   via  c1fb7213edaf512774eb74adb0a89b4984f88904 (commit)
   via  6c332bd84ce320e4163130a052af7b9950b38318 (commit)
   via  5d81817b7168d16190848807d2cfb73ed14b8ee7 (commit)
   via  6d9ab1eff7bd8a1374429c61627157dda4bb127b (commit)
   via  2187818706241201b067605138bbcaea420411b5 (commit)
   via  a52d35b8ef75ea4b6c9411d24450fc17706fdc9f (commit)
  from  a27f7433686292d5c54d42c394bd620da3b3c2d6 (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=b1b6156cca4068dee0cfd0ec9c1fd6f2e7513db5
commit b1b6156cca4068dee0cfd0ec9c1fd6f2e7513db5
Merge: a27f743 c1fb721
Author: Brad King 
AuthorDate: Thu Mar 2 09:26:23 2017 -0500
Commit: Brad King 
CommitDate: Thu Mar 2 09:26:23 2017 -0500

Merge branch 'master' into next


---

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.8.0-rc1-393-gc1fb721

2017-03-02 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, master has been updated
   via  c1fb7213edaf512774eb74adb0a89b4984f88904 (commit)
   via  3bf28f5ed057b2fe4d90c601065188055bb052a1 (commit)
   via  154d8339f77e5cd31466e5a4258c27a8aa31ff1c (commit)
   via  ac77fa35c0250f2f7593fd2fc499b27bf395e5a6 (commit)
   via  662ad240db50792361aa042c60559c1c48042a6b (commit)
   via  5adf22bbd23185808dc3295766b25b4aa15e1612 (commit)
   via  36fa535d922f891deed4333b30ddbf429291ca06 (commit)
   via  6d7c02db34a3a8ca9cf14fa936b5835014c46739 (commit)
   via  1cdf7c1be24f87e2854204aa5bc7de4dc22af1a3 (commit)
   via  110c1bf475e2d1df27189936a1e7b66b48afb5a9 (commit)
   via  db431ecfe33dbfa9eb43e4edd72ebc35b2c7c563 (commit)
  from  6c332bd84ce320e4163130a052af7b9950b38318 (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=c1fb7213edaf512774eb74adb0a89b4984f88904
commit c1fb7213edaf512774eb74adb0a89b4984f88904
Merge: 6c332bd 3bf28f5
Author: Brad King 
AuthorDate: Thu Mar 2 09:26:13 2017 -0500
Commit: CMake Topic Stage 
CommitDate: Thu Mar 2 09:26:13 2017 -0500

Merge topic 'autogen_uic_paths'

3bf28f5e Autogen: New short InfoGet functions
154d8339 Autogen: Parse enabled feature configuration only
ac77fa35 Autogen: Add missing return on error
662ad240 Autogen: Rename and merge moc related methods
5adf22bb Autogen: Add AUTOUIC_SEARCH_PATHS release notes
36fa535d Autogen: Add AUTOUIC_SEARCH_PATHS documentation
6d7c02db Autogen: Add AUTOUIC_SEARCH_PATHS test
1cdf7c1b Autogen: Add AUTOUIC_SEARCH_PATHS support
110c1bf4 Autogen: Add subDirPrefix function
db431ecf Autogen: Merge FindInIncludeDirectories into FindIncludeFile


---

Summary of changes:
 Help/manual/cmake-properties.7.rst |1 +
 Help/manual/cmake-qt.7.rst |4 +-
 Help/manual/cmake-variables.7.rst  |1 +
 Help/prop_tgt/AUTOUIC.rst  |9 +-
 Help/prop_tgt/AUTOUIC_OPTIONS.rst  |2 +-
 Help/prop_tgt/AUTOUIC_SEARCH_PATHS.rst |   12 +
 Help/release/dev/Autogen_uic_paths.rst |   10 +
 Help/variable/CMAKE_AUTOUIC_SEARCH_PATHS.rst   |   11 +
 Modules/AutogenInfo.cmake.in   |3 +-
 Source/cmQtAutoGeneratorInitializer.cxx|   15 +-
 Source/cmQtAutoGenerators.cxx  |  516 ++--
 Source/cmQtAutoGenerators.h|   18 +-
 Source/cmTarget.cxx|1 +
 Tests/QtAutogen/CMakeLists.txt |4 +
 Tests/QtAutogen/uicInclude/CMakeLists.txt  |8 +
 .../{skipSource/uigen1.ui => uicInclude/PageC.ui}  |4 +-
 .../uigen1.ui => uicInclude/dirA/PageA.ui} |4 +-
 .../uigen1.ui => uicInclude/dirB/sub/PageB.ui} |4 +-
 Tests/QtAutogen/uicInclude/main.cpp|   10 +
 Tests/QtAutogen/uicInclude/main.hpp|6 +
 20 files changed, 374 insertions(+), 269 deletions(-)
 create mode 100644 Help/prop_tgt/AUTOUIC_SEARCH_PATHS.rst
 create mode 100644 Help/release/dev/Autogen_uic_paths.rst
 create mode 100644 Help/variable/CMAKE_AUTOUIC_SEARCH_PATHS.rst
 create mode 100644 Tests/QtAutogen/uicInclude/CMakeLists.txt
 copy Tests/QtAutogen/{skipSource/uigen1.ui => uicInclude/PageC.ui} (87%)
 copy Tests/QtAutogen/{skipSource/uigen1.ui => uicInclude/dirA/PageA.ui} (87%)
 copy Tests/QtAutogen/{skipSource/uigen1.ui => uicInclude/dirB/sub/PageB.ui} 
(87%)
 create mode 100644 Tests/QtAutogen/uicInclude/main.cpp
 create mode 100644 Tests/QtAutogen/uicInclude/main.hpp


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-rc1-376-g6d9ab1e

2017-03-02 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, master has been updated
   via  6d9ab1eff7bd8a1374429c61627157dda4bb127b (commit)
   via  2186b323c0bc43b7eecec0f906cff9fe2e57fc0f (commit)
   via  16f1dd0d16365448f9d483a5d00aba356eb2906b (commit)
   via  b2de6da2f161cde26178e568974fa5ef7f7480fc (commit)
   via  003c91385a050fc3b469e9f4d1ccf22e70f0f709 (commit)
   via  bf67fff0356f1d0d6996a52eb6fda2358b17b57c (commit)
   via  e629be4a7affe8615c2321b1a08bebb42bb81b15 (commit)
   via  1c7a9119d29568a1e3da82e8e96c8db464d599ab (commit)
   via  8250a520aacdeab2c22a24bbd31c23fee787b86e (commit)
   via  4b847f12f645b953feada796de66bc40b876f4f5 (commit)
  from  2187818706241201b067605138bbcaea420411b5 (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=6d9ab1eff7bd8a1374429c61627157dda4bb127b
commit 6d9ab1eff7bd8a1374429c61627157dda4bb127b
Merge: 2187818 2186b32
Author: Brad King 
AuthorDate: Thu Mar 2 09:25:59 2017 -0500
Commit: CMake Topic Stage 
CommitDate: Thu Mar 2 09:25:59 2017 -0500

Merge topic 'FindHDF5-updates'

2186b323 FindHDF5: initialize HDF5_DEFINITIONS when using hdf5-config.cmake
16f1dd0d FindHDF5: document HDF5__DEFINITIONS
b2de6da2 FindHDF5: use import libraries when using hdf5-config.cmake on 
Windows
003c9138 FindHDF5: do not cache library locations when using 
hdf5-config.cmake
bf67fff0 FindHDF5: recognize hdf5:: prefix when using hdf5-config.cmake
e629be4a FindHDF5: fix typo in comment
1c7a9119 FindHDF5: remove mark_as_advanced for non-cached variables
8250a520 FindHDF5: add HDF5_FIND_DEBUG variable to get debugging output
4b847f12 FindHDF5: hide HDF5_DIR if HDF5 was found in another way


---

Summary of changes:
 Modules/FindHDF5.cmake |   81 ++--
 1 file changed, 58 insertions(+), 23 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.8.0-rc1-380-g5d81817

2017-03-02 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, master has been updated
   via  5d81817b7168d16190848807d2cfb73ed14b8ee7 (commit)
   via  506207f928bfc8853864edb9a200a38e7ac2b02b (commit)
   via  a202749c46f84563a6cccf6d5d31808fddf53408 (commit)
   via  9588d0a2e2442e6cc07dd4563399e257d95c792b (commit)
  from  6d9ab1eff7bd8a1374429c61627157dda4bb127b (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=5d81817b7168d16190848807d2cfb73ed14b8ee7
commit 5d81817b7168d16190848807d2cfb73ed14b8ee7
Merge: 6d9ab1e 506207f
Author: Brad King 
AuthorDate: Thu Mar 2 09:26:03 2017 -0500
Commit: CMake Topic Stage 
CommitDate: Thu Mar 2 09:26:03 2017 -0500

Merge topic 'csproj_add_free_source_tags'

506207f9 VS: add test for VS_CSHARP_* source file property
a202749c VS: add CSharpUtilities module
9588d0a2 VS: add VS_CSHARP_ sourcefile property


---

Summary of changes:
 Help/manual/cmake-modules.7.rst|1 +
 Help/manual/cmake-properties.7.rst |1 +
 Help/module/CSharpUtilities.rst|1 +
 Help/prop_sf/VS_CSHARP_tagname.rst |   19 ++
 Help/release/3.8.rst   |   14 +-
 Modules/CSharpUtilities.cmake  |  298 
 Source/cmSourceFile.h  |1 +
 Source/cmVisualStudio10TargetGenerator.cxx |   93 +++---
 Tests/RunCMake/VS10Project/RunCMakeTest.cmake  |1 +
 .../VS10Project/VsCSharpCustomTags-check.cmake |   23 ++
 .../RunCMake/VS10Project/VsCSharpCustomTags.cmake  |   11 +
 .../foo.cpp => RunCMake/VS10Project/foo.cs}|0
 12 files changed, 407 insertions(+), 56 deletions(-)
 create mode 100644 Help/module/CSharpUtilities.rst
 create mode 100644 Help/prop_sf/VS_CSHARP_tagname.rst
 create mode 100644 Modules/CSharpUtilities.cmake
 create mode 100644 Tests/RunCMake/VS10Project/VsCSharpCustomTags-check.cmake
 create mode 100644 Tests/RunCMake/VS10Project/VsCSharpCustomTags.cmake
 copy Tests/{CTestCoverageCollectGCOV/TestProject/3rdparty/foo.cpp => 
RunCMake/VS10Project/foo.cs} (100%)


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-rc1-366-g2187818

2017-03-02 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, master has been updated
   via  2187818706241201b067605138bbcaea420411b5 (commit)
   via  54a48c6781dd02f2ebbdb19a77c9a4fb59e67735 (commit)
   via  f4977d056b2295679ce723c639f16823cfe489d5 (commit)
   via  7202db5db46bfe7499244af315249820e883c8cf (commit)
   via  5995082101a1959f303f9f3d6c0a1e483630749e (commit)
   via  6a54d28e44c3e539a0f6b45a5bdd748df5ef29ca (commit)
  from  a52d35b8ef75ea4b6c9411d24450fc17706fdc9f (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=2187818706241201b067605138bbcaea420411b5
commit 2187818706241201b067605138bbcaea420411b5
Merge: a52d35b 54a48c6
Author: Brad King 
AuthorDate: Thu Mar 2 09:25:54 2017 -0500
Commit: CMake Topic Stage 
CommitDate: Thu Mar 2 09:25:54 2017 -0500

Merge topic 'xcode-enhance-schemes'

54a48c67 Xcode: Use proper buildable name for schema
f4977d05 Xcode: Select executable target for execution in schema
7202db5d Xcode: Fix schema container location calculation
59950821 Xcode: Do not autocreate schemes
6a54d28e Xcode: Use proper indentation for schemes


---

Summary of changes:
 Source/cmGlobalXCodeGenerator.cxx |   37 +---
 Source/cmGlobalXCodeGenerator.h   |4 +--
 Source/cmXCodeScheme.cxx  |   49 ++---
 Source/cmXCodeScheme.h|   12 ++---
 Source/cmXMLWriter.cxx|   11 -
 Source/cmXMLWriter.h  |3 +++
 6 files changed, 92 insertions(+), 24 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.8.0-rc1-382-g6c332bd

2017-03-02 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, master has been updated
   via  6c332bd84ce320e4163130a052af7b9950b38318 (commit)
   via  503f25d490e56dfc1d3dc894e1fc1bd3e7e89e81 (commit)
  from  5d81817b7168d16190848807d2cfb73ed14b8ee7 (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=6c332bd84ce320e4163130a052af7b9950b38318
commit 6c332bd84ce320e4163130a052af7b9950b38318
Merge: 5d81817 503f25d
Author: Brad King 
AuthorDate: Thu Mar 2 09:26:08 2017 -0500
Commit: CMake Topic Stage 
CommitDate: Thu Mar 2 09:26:08 2017 -0500

Merge topic 'find_library-custom-lib-suffix'

503f25d4 find_library: Allow custom lib suffix be used as find path


---

Summary of changes:
 Help/command/find_library.rst  |7 +
 Help/manual/cmake-variables.7.rst  |1 +
 Help/prop_gbl/FIND_LIBRARY_USE_LIB32_PATHS.rst |2 ++
 Help/prop_gbl/FIND_LIBRARY_USE_LIB64_PATHS.rst |2 ++
 .../release/dev/find_library-custom-lib-suffix.rst |6 +
 .../CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX.rst   |   11 
 Source/cmFindLibraryCommand.cxx|   28 +++-
 Tests/CMakeOnly/find_library/CMakeLists.txt|   15 ++-
 .../find_library/lib/{64 => A/libXYZ}/libtest2.a   |0
 .../find_library/lib/{A/lib => XYZ}/libtest1.a |0
 .../{lib32/A/lib32 => libXYZ/A/lib}/libtest4.a |0
 .../{lib/32 => libXYZ/A/libXYZ}/libtest5.a |0
 .../CMakeOnly/find_library/libXYZ/A/libtest6.a |0
 .../CMakeOnly/find_library/libXYZ/libtest7.a   |0
 14 files changed, 58 insertions(+), 14 deletions(-)
 create mode 100644 Help/release/dev/find_library-custom-lib-suffix.rst
 create mode 100644 Help/variable/CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX.rst
 copy Tests/CMakeOnly/find_library/lib/{64 => A/libXYZ}/libtest2.a (100%)
 copy Tests/CMakeOnly/find_library/lib/{A/lib => XYZ}/libtest1.a (100%)
 copy Tests/CMakeOnly/find_library/{lib32/A/lib32 => libXYZ/A/lib}/libtest4.a 
(100%)
 copy Tests/CMakeOnly/find_library/{lib/32 => libXYZ/A/libXYZ}/libtest5.a (100%)
 copy Modules/IntelVSImplicitPath/hello.f => 
Tests/CMakeOnly/find_library/libXYZ/A/libtest6.a (100%)
 copy Modules/IntelVSImplicitPath/hello.f => 
Tests/CMakeOnly/find_library/libXYZ/libtest7.a (100%)


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-rc1-736-ga27f743

2017-03-02 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, next has been updated
   via  a27f7433686292d5c54d42c394bd620da3b3c2d6 (commit)
   via  3bf28f5ed057b2fe4d90c601065188055bb052a1 (commit)
   via  154d8339f77e5cd31466e5a4258c27a8aa31ff1c (commit)
   via  ac77fa35c0250f2f7593fd2fc499b27bf395e5a6 (commit)
   via  662ad240db50792361aa042c60559c1c48042a6b (commit)
   via  5adf22bbd23185808dc3295766b25b4aa15e1612 (commit)
   via  36fa535d922f891deed4333b30ddbf429291ca06 (commit)
   via  6d7c02db34a3a8ca9cf14fa936b5835014c46739 (commit)
   via  1cdf7c1be24f87e2854204aa5bc7de4dc22af1a3 (commit)
   via  110c1bf475e2d1df27189936a1e7b66b48afb5a9 (commit)
  from  16114ac346e661d7b3bb50dfd09a1a8f361751a4 (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=a27f7433686292d5c54d42c394bd620da3b3c2d6
commit a27f7433686292d5c54d42c394bd620da3b3c2d6
Merge: 16114ac 3bf28f5
Author: Brad King 
AuthorDate: Thu Mar 2 09:10:51 2017 -0500
Commit: CMake Topic Stage 
CommitDate: Thu Mar 2 09:10:51 2017 -0500

Merge topic 'autogen_uic_paths' into next

3bf28f5e Autogen: New short InfoGet functions
154d8339 Autogen: Parse enabled feature configuration only
ac77fa35 Autogen: Add missing return on error
662ad240 Autogen: Rename and merge moc related methods
5adf22bb Autogen: Add AUTOUIC_SEARCH_PATHS release notes
36fa535d Autogen: Add AUTOUIC_SEARCH_PATHS documentation
6d7c02db Autogen: Add AUTOUIC_SEARCH_PATHS test
1cdf7c1b Autogen: Add AUTOUIC_SEARCH_PATHS support
110c1bf4 Autogen: Add subDirPrefix function


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3bf28f5ed057b2fe4d90c601065188055bb052a1
commit 3bf28f5ed057b2fe4d90c601065188055bb052a1
Author: Sebastian Holtermann 
AuthorDate: Mon Feb 27 14:22:07 2017 +0100
Commit: Brad King 
CommitDate: Thu Mar 2 09:10:03 2017 -0500

Autogen: New short InfoGet functions

diff --git a/Modules/AutogenInfo.cmake.in b/Modules/AutogenInfo.cmake.in
index f8ffe91..fcecb6c 100644
--- a/Modules/AutogenInfo.cmake.in
+++ b/Modules/AutogenInfo.cmake.in
@@ -16,7 +16,7 @@ set(AM_QT_UIC_EXECUTABLE @_qt_uic_executable@)
 set(AM_QT_RCC_EXECUTABLE @_qt_rcc_executable@)
 # MOC settings
 set(AM_MOC_SKIP @_moc_skip@)
-set(AM_MOC_COMPILE_DEFINITIONS @_moc_compile_defs@)
+set(AM_MOC_DEFINITIONS @_moc_compile_defs@)
 set(AM_MOC_INCLUDES @_moc_incs@)
 set(AM_MOC_OPTIONS @_moc_options@)
 set(AM_MOC_RELAXED_MODE @_moc_relaxed_mode@)
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx 
b/Source/cmQtAutoGeneratorInitializer.cxx
index 5460f73..a45b3d5 100644
--- a/Source/cmQtAutoGeneratorInitializer.cxx
+++ b/Source/cmQtAutoGeneratorInitializer.cxx
@@ -972,7 +972,7 @@ void cmQtAutoGeneratorInitializer::SetupAutoGenerateTarget(
it = configMocDefines.begin(),
end = configMocDefines.end();
  it != end; ++it) {
-  infoFile << "set(AM_MOC_COMPILE_DEFINITIONS_" << it->first << " "
+  infoFile << "set(AM_MOC_DEFINITIONS_" << it->first << " "
<< it->second << ")\n";
 }
   }
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx
index dfaaa6a..c83f9a9 100644
--- a/Source/cmQtAutoGenerators.cxx
+++ b/Source/cmQtAutoGenerators.cxx
@@ -55,20 +55,38 @@ static std::string Quoted(const std::string& text)
   return res;
 }
 
-static std::string GetConfigDefinition(cmMakefile* makefile,
-   const std::string& key,
-   const std::string& config)
+static void InfoGet(cmMakefile* makefile, const char* key, std::string& value)
 {
-  std::string keyConf = key;
-  if (!config.empty()) {
-keyConf += "_";
-keyConf += config;
+  value = makefile->GetSafeDefinition(key);
+}
+
+static void InfoGet(cmMakefile* makefile, const char* key, bool& value)
+{
+  value = makefile->IsOn(key);
+}
+
+static void InfoGet(cmMakefile* makefile, const char* key,
+std::vector& list)
+{
+  cmSystemTools::ExpandListArgument(makefile->GetSafeDefinition(key), list);
+}
+
+static void InfoGet(cmMakefile* makefile, const char* key,
+const std::string& config, std::vector& list)
+{
+  const char* valueConf = CM_NULLPTR;
+  {
+std::string keyConf = key;
+if (!config.empty()) {
+  keyConf += "_";
+  keyConf += config;
+}
+valueConf = makefile->GetDefinition(keyConf);
   }
-  const char* valueConf = makefile->GetDefinition(keyConf);
-  if (valueConf != CM_NULLPTR) {
-

[Cmake-commits] CMake branch, next, updated. v3.8.0-rc1-726-g16114ac

2017-03-02 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, next has been updated
   via  16114ac346e661d7b3bb50dfd09a1a8f361751a4 (commit)
   via  69528fe65f0c4402c6560917d6cb118d2c103445 (commit)
   via  f3102ca884496a4a0644dc43afaf80a253191ed8 (commit)
   via  c3fb650c85a01f1a31f3f56f5ae630d4e6c6e98d (commit)
  from  2d590038de63afa16ebb9197ca070aba1130c39e (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=16114ac346e661d7b3bb50dfd09a1a8f361751a4
commit 16114ac346e661d7b3bb50dfd09a1a8f361751a4
Merge: 2d59003 69528fe
Author: Brad King 
AuthorDate: Thu Mar 2 08:36:49 2017 -0500
Commit: CMake Topic Stage 
CommitDate: Thu Mar 2 08:36:49 2017 -0500

Merge topic 'implicit-dir-symlinks' into next

69528fe6 Tests: Add case for RPATH exclusion of symlinks to implicit 
directories
f3102ca8 Merge branch 'backport-implicit-dir-symlinks' into 
implicit-dir-symlinks
c3fb650c cmOrderDirectories: Consider symlinks when checking implicit 
directories


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=69528fe65f0c4402c6560917d6cb118d2c103445
commit 69528fe65f0c4402c6560917d6cb118d2c103445
Author: Brad King 
AuthorDate: Wed Mar 1 12:38:10 2017 -0500
Commit: Brad King 
CommitDate: Thu Mar 2 08:36:32 2017 -0500

Tests: Add case for RPATH exclusion of symlinks to implicit directories

Issue: #16682

diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index 63016f1..a16efb3 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -153,6 +153,9 @@ add_RunCMake_test(TargetPropertyGeneratorExpressions)
 add_RunCMake_test(Languages)
 add_RunCMake_test(LinkStatic)
 add_RunCMake_test(ObjectLibrary)
+if(UNIX AND CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG AND CMAKE_EXECUTABLE_FORMAT 
STREQUAL "ELF")
+  add_RunCMake_test(RuntimePath)
+endif()
 add_RunCMake_test(Swift)
 add_RunCMake_test(TargetObjects)
 add_RunCMake_test(TargetSources)
diff --git a/Tests/RunCMake/RuntimePath/A.c b/Tests/RunCMake/RuntimePath/A.c
new file mode 100644
index 000..e9d4195
--- /dev/null
+++ b/Tests/RunCMake/RuntimePath/A.c
@@ -0,0 +1,4 @@
+int libA(void)
+{
+  return 0;
+}
diff --git a/Tests/RunCMake/RuntimePath/CMakeLists.txt 
b/Tests/RunCMake/RuntimePath/CMakeLists.txt
new file mode 100644
index 000..a640c56
--- /dev/null
+++ b/Tests/RunCMake/RuntimePath/CMakeLists.txt
@@ -0,0 +1,3 @@
+cmake_minimum_required(VERSION 3.7)
+project(${RunCMake_TEST} NONE)
+include(${RunCMake_TEST}.cmake)
diff --git a/Tests/RunCMake/RuntimePath/RunCMakeTest.cmake 
b/Tests/RunCMake/RuntimePath/RunCMakeTest.cmake
new file mode 100644
index 000..a9a7f05
--- /dev/null
+++ b/Tests/RunCMake/RuntimePath/RunCMakeTest.cmake
@@ -0,0 +1,18 @@
+include(RunCMake)
+
+
+function(run_SymlinkImplicit)
+  # Use a single build tree for a few tests without cleaning.
+  set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/SymlinkImplicit-build)
+  set(RunCMake_TEST_NO_CLEAN 1)
+  if(RunCMake_GENERATOR MATCHES "Make|Ninja")
+set(RunCMake_TEST_OPTIONS -DCMAKE_BUILD_TYPE=Debug)
+  endif()
+  file(REMOVE_RECURSE "${RunCMake_TEST_BINARY_DIR}")
+  file(MAKE_DIRECTORY "${RunCMake_TEST_BINARY_DIR}")
+  run_cmake(SymlinkImplicit)
+  run_cmake_command(SymlinkImplicit-build ${CMAKE_COMMAND} --build . --config 
Debug)
+  run_cmake_command(SymlinkImplicitCheck
+${CMAKE_COMMAND} -Ddir=${RunCMake_TEST_BINARY_DIR} -P 
${RunCMake_SOURCE_DIR}/SymlinkImplicitCheck.cmake)
+endfunction()
+run_SymlinkImplicit()
diff --git a/Tests/RunCMake/RuntimePath/SymlinkImplicit.cmake 
b/Tests/RunCMake/RuntimePath/SymlinkImplicit.cmake
new file mode 100644
index 000..6578f8f
--- /dev/null
+++ b/Tests/RunCMake/RuntimePath/SymlinkImplicit.cmake
@@ -0,0 +1,17 @@
+enable_language(C)
+
+set(lib_dir ${CMAKE_CURRENT_BINARY_DIR}/lib)
+set(lib_link ${CMAKE_CURRENT_BINARY_DIR}/libLink)
+set(lib_always ${CMAKE_CURRENT_BINARY_DIR}/libAlways)
+file(MAKE_DIRECTORY ${lib_dir})
+execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink lib ${lib_link})
+execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink lib ${lib_always})
+
+add_library(A SHARED A.c)
+list(APPEND CMAKE_C_IMPLICIT_LINK_DIRECTORIES ${lib_dir})
+set_property(TARGET A PROPERTY LIBRARY_OUTPUT_DIRECTORY ${lib_link})
+
+add_executable(exe main.c)
+target_link_libraries(exe A)
+set_property(TARGET exe PROPERTY RUNTIME_OUTPUT_DIRECTORY 
${CMAKE_CURRENT_BINARY_DIR}/bin)
+set_property(TARGET exe PROPERTY BUILD_RPATH ${lib_always})
diff --git a/Tests/RunCMake/RuntimePath/SymlinkImplicitCheck-result.txt 

[Cmake-commits] CMake branch, next, updated. v3.8.0-rc1-722-g2d59003

2017-03-02 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, next has been updated
   via  2d590038de63afa16ebb9197ca070aba1130c39e (commit)
   via  5aaf6d77670c6059fc88fe3e247d58248051dc74 (commit)
  from  dcb743e3f68638141d4c81f653a82b9082135f3f (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=2d590038de63afa16ebb9197ca070aba1130c39e
commit 2d590038de63afa16ebb9197ca070aba1130c39e
Merge: dcb743e 5aaf6d7
Author: Brad King 
AuthorDate: Thu Mar 2 08:31:45 2017 -0500
Commit: CMake Topic Stage 
CommitDate: Thu Mar 2 08:31:45 2017 -0500

Merge topic 'modernize-deprecated-headers' into next

5aaf6d77 Revert "Modernize deprecated headers"


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5aaf6d77670c6059fc88fe3e247d58248051dc74
commit 5aaf6d77670c6059fc88fe3e247d58248051dc74
Author: Brad King 
AuthorDate: Thu Mar 2 08:30:15 2017 -0500
Commit: Brad King 
CommitDate: Thu Mar 2 08:30:15 2017 -0500

Revert "Modernize deprecated headers"

This reverts commit e1418249313f35511a3162242d626785e4f51144.

diff --git a/Source/CPack/IFW/cmCPackIFWInstaller.cxx 
b/Source/CPack/IFW/cmCPackIFWInstaller.cxx
index 71814bb..d8bafee 100644
--- a/Source/CPack/IFW/cmCPackIFWInstaller.cxx
+++ b/Source/CPack/IFW/cmCPackIFWInstaller.cxx
@@ -3,8 +3,8 @@
 #include "cmCPackIFWInstaller.h"
 
 #include 
-#include 
 #include 
+#include 
 #include 
 
 #include "CPack/cmCPackGenerator.h"
diff --git a/Source/CPack/IFW/cmCPackIFWPackage.cxx 
b/Source/CPack/IFW/cmCPackIFWPackage.cxx
index 7bf34ce..e23b1b9 100644
--- a/Source/CPack/IFW/cmCPackIFWPackage.cxx
+++ b/Source/CPack/IFW/cmCPackIFWPackage.cxx
@@ -13,9 +13,9 @@
 #include "cmXMLWriter.h"
 
 #include 
-#include 
 #include 
 #include 
+#include 
 
 //- Logger ---
 #ifdef cmCPackLogger
diff --git a/Source/CPack/IFW/cmCPackIFWRepository.cxx 
b/Source/CPack/IFW/cmCPackIFWRepository.cxx
index ed4cb4e..cc204e8 100644
--- a/Source/CPack/IFW/cmCPackIFWRepository.cxx
+++ b/Source/CPack/IFW/cmCPackIFWRepository.cxx
@@ -10,7 +10,7 @@
 #include "cmXMLWriter.h"
 
 #include 
-#include 
+#include 
 
 #ifdef cmCPackLogger
 #undef cmCPackLogger
diff --git a/Source/CPack/OSXScriptLauncher.cxx 
b/Source/CPack/OSXScriptLauncher.cxx
index 689633a..b159e64 100644
--- a/Source/CPack/OSXScriptLauncher.cxx
+++ b/Source/CPack/OSXScriptLauncher.cxx
@@ -3,8 +3,8 @@
 #include 
 #include 
 #include 
-#include 
 #include 
+#include 
 #include 
 #include 
 
diff --git a/Source/CPack/cmCPackDebGenerator.cxx 
b/Source/CPack/cmCPackDebGenerator.cxx
index 28b5a78..5c50da8 100644
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/Source/CPack/cmCPackDebGenerator.cxx
@@ -9,13 +9,13 @@
 #include "cmGeneratedFileStream.h"
 #include "cmSystemTools.h"
 
-#include 
 #include 
-#include 
-#include 
+#include 
 #include 
 #include 
 #include 
+#include 
+#include 
 #include 
 #include 
 
diff --git a/Source/CPack/cmCPackDragNDropGenerator.cxx 
b/Source/CPack/cmCPackDragNDropGenerator.cxx
index df6ee22..ec5fc88 100644
--- a/Source/CPack/cmCPackDragNDropGenerator.cxx
+++ b/Source/CPack/cmCPackDragNDropGenerator.cxx
@@ -9,9 +9,9 @@
 
 #include 
 #include 
-#include 
 #include 
 #include 
+#include 
 
 #include 
 
diff --git a/Source/CPack/cmCPackDragNDropGenerator.h 
b/Source/CPack/cmCPackDragNDropGenerator.h
index 0e7b9f4..876eab7 100644
--- a/Source/CPack/cmCPackDragNDropGenerator.h
+++ b/Source/CPack/cmCPackDragNDropGenerator.h
@@ -4,8 +4,8 @@
 #define cmCPackDragNDropGenerator_h
 
 #include 
-#include 
 #include 
+#include 
 #include 
 #include 
 
diff --git a/Source/CPack/cmCPackLog.h b/Source/CPack/cmCPackLog.h
index d699f05..a988ccc 100644
--- a/Source/CPack/cmCPackLog.h
+++ b/Source/CPack/cmCPackLog.h
@@ -5,8 +5,8 @@
 
 #include  // IWYU pragma: keep
 
-#include 
 #include 
+#include 
 #include 
 
 #define cmCPack_Log(ctSelf, logType, msg) \
diff --git a/Source/CPack/cmCPackNSISGenerator.cxx 
b/Source/CPack/cmCPackNSISGenerator.cxx
index 690f6f3..1940953 100644
--- a/Source/CPack/cmCPackNSISGenerator.cxx
+++ b/Source/CPack/cmCPackNSISGenerator.cxx
@@ -11,10 +11,10 @@
 #include 
 #include 
 #include 
-#include 
-#include 
 #include 
 #include 
+#include 
+#include 
 #include 
 
 /* NSIS uses different command line syntax on Windows and others */
diff --git a/Source/CPack/cmCPackPackageMakerGenerator.cxx 
b/Source/CPack/cmCPackPackageMakerGenerator.cxx
index 719f7b2..8000d6e 100644
--- a/Source/CPack/cmCPackPackageMakerGenerator.cxx
+++ 

[Cmake-commits] CMake branch, next, updated. v3.8.0-rc1-720-gdcb743e

2017-03-02 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, next has been updated
   via  dcb743e3f68638141d4c81f653a82b9082135f3f (commit)
   via  604da06269a3a5e4d37d0bccdf1fc91378ddb9b4 (commit)
  from  25dc8c09860498aaba135aed5a05fa3b55b304d0 (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=dcb743e3f68638141d4c81f653a82b9082135f3f
commit dcb743e3f68638141d4c81f653a82b9082135f3f
Merge: 25dc8c0 604da06
Author: Brad King 
AuthorDate: Thu Mar 2 08:28:01 2017 -0500
Commit: CMake Topic Stage 
CommitDate: Thu Mar 2 08:28:01 2017 -0500

Merge topic 'implicit-dir-symlinks' into next

604da062 fixup! Tests: Add case for RPATH exclusion of symlinks to implicit 
directories


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=604da06269a3a5e4d37d0bccdf1fc91378ddb9b4
commit 604da06269a3a5e4d37d0bccdf1fc91378ddb9b4
Author: Brad King 
AuthorDate: Thu Mar 2 08:25:48 2017 -0500
Commit: Brad King 
CommitDate: Thu Mar 2 08:25:48 2017 -0500

fixup! Tests: Add case for RPATH exclusion of symlinks to implicit 
directories

diff --git a/Tests/RunCMake/RuntimePath/SymlinkImplicitCheck-stderr.txt 
b/Tests/RunCMake/RuntimePath/SymlinkImplicitCheck-stderr.txt
index 7115011..b0ede70 100644
--- a/Tests/RunCMake/RuntimePath/SymlinkImplicitCheck-stderr.txt
+++ b/Tests/RunCMake/RuntimePath/SymlinkImplicitCheck-stderr.txt
@@ -5,14 +5,18 @@
 
   to the file:
 
-.*/Tests/RunCMake/RuntimePath/SymlinkImplicit-build/exe
+[^
+]*/Tests/RunCMake/RuntimePath/SymlinkImplicit-build/exe
 
   The current (RPATH|RUNPATH) is:
 
-.*/Tests/RunCMake/RuntimePath/SymlinkImplicit-build/libAlways
+[^
+]*/Tests/RunCMake/RuntimePath/SymlinkImplicit-build/libAlways(:[^
+]*)?
 
   which does not contain:
 
-.*/Tests/RunCMake/RuntimePath/SymlinkImplicit-build/libLink
+[^
+]*/Tests/RunCMake/RuntimePath/SymlinkImplicit-build/libLink
 
   as was expected\.$

---

Summary of changes:
 Tests/RunCMake/RuntimePath/SymlinkImplicitCheck-stderr.txt |   10 +++---
 1 file changed, 7 insertions(+), 3 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-rc1-718-g25dc8c0

2017-03-02 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, next has been updated
   via  25dc8c09860498aaba135aed5a05fa3b55b304d0 (commit)
   via  823d54d1be0ce6c56c60927b1905e36130c69327 (commit)
  from  6a1c76184210f5dc289293bb27d5d322c0a5f67d (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=25dc8c09860498aaba135aed5a05fa3b55b304d0
commit 25dc8c09860498aaba135aed5a05fa3b55b304d0
Merge: 6a1c761 823d54d
Author: Brad King 
AuthorDate: Thu Mar 2 08:18:03 2017 -0500
Commit: CMake Topic Stage 
CommitDate: Thu Mar 2 08:18:03 2017 -0500

Merge topic 'implicit-dir-symlinks' into next

823d54d1 fixup! cmOrderDirectories: Consider symlinks when checking implicit


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=823d54d1be0ce6c56c60927b1905e36130c69327
commit 823d54d1be0ce6c56c60927b1905e36130c69327
Author: Brad King 
AuthorDate: Thu Mar 2 08:16:45 2017 -0500
Commit: Brad King 
CommitDate: Thu Mar 2 08:16:45 2017 -0500

fixup! cmOrderDirectories: Consider symlinks when checking implicit

diff --git a/Source/cmOrderDirectories.cxx b/Source/cmOrderDirectories.cxx
index dfba80e..d48eb53 100644
--- a/Source/cmOrderDirectories.cxx
+++ b/Source/cmOrderDirectories.cxx
@@ -346,7 +346,7 @@ void cmOrderDirectories::SetImplicitDirectories(
   std::set const& implicitDirs)
 {
   this->ImplicitDirectories.clear();
-  for (std::set::iterator i = implicitDirs.begin();
+  for (std::set::const_iterator i = implicitDirs.begin();
i != implicitDirs.end(); ++i) {
 this->ImplicitDirectories.insert(this->GetRealPath(*i));
   }

---

Summary of changes:
 Source/cmOrderDirectories.cxx |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


Re: [CMake] libsndfile in winodws

2017-03-02 Thread Dave Flogeras
On Thu, Mar 2, 2017 at 9:14 AM, Dave Flogeras  wrote:
>
> Just my 0.02, but if I recall Eric doesn't (or didn't) support building
> directly on Windows.
>
>
Pardon me, that should be Erik
-- 

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] libsndfile in winodws

2017-03-02 Thread Dave Flogeras
On Thu, Mar 2, 2017 at 8:47 AM, aishwarya selvaraj <
aishwaryaselvaraj1...@gmail.com> wrote:

> @Dan Liew
> Thanks for your feedback.
> Yes I was trying to proceed in that direction .
> Did you find any links which could be useful ?
> could you kindly share them ?
> Thanks
>
> Running a `configure` script is not going to work on Windows out of
>> the box because libsnd uses GNU autotools which is for made for UNIX
>> like operating systems. You should try and figure out how (if it's
>> even possible) to build libsnd on Windows. At glance at the GitHub
>> page shows they have a CMake build system but the docs say it will
>> likely only work on Linux. There are some commits that mention MINGW
>> so maybe it might be possible to build using the MSYS environment.
>>
>>

Just my 0.02, but if I recall Eric doesn't (or didn't) support building
directly on Windows.  This may have changed since VS must now support more
of C99 as part of C11.

http://www.mega-nerd.com/libsndfile/win32.html

It has always been my best practice to either use his provided binaries, or
cross compile using mingw on Linux, then move the binary and headers over.

Regards,
Dave
-- 

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] libsndfile in winodws

2017-03-02 Thread aishwarya selvaraj
@Dan Liew
Thanks for your feedback.
Yes I was trying to proceed in that direction .
Did you find any links which could be useful ?
could you kindly share them ?
Thanks

On Thu, Mar 2, 2017 at 5:08 PM, Dan Liew  wrote:

> On 2 March 2017 at 12:07, aishwarya selvaraj
>  wrote:
> > Hi all ,
> > I was trying to build my .cpp file in windows in Windows platform
> (windows
> > 10) using cmake .
> > My .cpp file makes use of two external libraries 1)armadillo 2)libsnd
> file.
> > I have written a corresponding cmakelist.txt to compile and obtain the
> > binary .
> > I was successful in doing so in Linux , when it come to Windows I obtain
> the
> > following error .
> >
> > 3>Time Elapsed 00:00:02.06
> > 2> Current branch master is up to date.
> > 2> No patch step for 'project_libsndfile'
> > 2> Performing autogen step for 'project_libsndfile'
> > 2> Performing configure step for 'project_libsndfile'
> > 2>
> > 'C:\Users\computing7\Desktop\TSM_cmake\build\lib\libsndfile\src\project_
> libsndfile\configure'
> > is not recognized as an internal or external command,
> > 2> operable program or batch file.
>
> Above is your clue. Your build could not run `configure`. Your problem
> is most likely in
>
> ```
> ExternalProject_Add(project_libsndfile
> GIT_REPOSITORY https://github.com/erikd/libsndfile.git
> PREFIX  lib/libsndfile
> CONFIGURE_COMMAND   /configure
> BUILD_COMMAND   make
> BUILD_IN_SOURCE 1
> INSTALL_COMMAND echo Skipping install step for libsndfile
> )
> ```
>
> Running a `configure` script is not going to work on Windows out of
> the box because libsnd uses GNU autotools which is for made for UNIX
> like operating systems. You should try and figure out how (if it's
> even possible) to build libsnd on Windows. At glance at the GitHub
> page shows they have a CMake build system but the docs say it will
> likely only work on Linux. There are some commits that mention MINGW
> so maybe it might be possible to build using the MSYS environment.
>
> Good Luck.
>



-- 
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

Re: [CMake] libsndfile in winodws

2017-03-02 Thread Dan Liew
On 2 March 2017 at 12:07, aishwarya selvaraj
 wrote:
> Hi all ,
> I was trying to build my .cpp file in windows in Windows platform (windows
> 10) using cmake .
> My .cpp file makes use of two external libraries 1)armadillo 2)libsnd file.
> I have written a corresponding cmakelist.txt to compile and obtain the
> binary .
> I was successful in doing so in Linux , when it come to Windows I obtain the
> following error .
>
> 3>Time Elapsed 00:00:02.06
> 2> Current branch master is up to date.
> 2> No patch step for 'project_libsndfile'
> 2> Performing autogen step for 'project_libsndfile'
> 2> Performing configure step for 'project_libsndfile'
> 2>
> 'C:\Users\computing7\Desktop\TSM_cmake\build\lib\libsndfile\src\project_libsndfile\configure'
> is not recognized as an internal or external command,
> 2> operable program or batch file.

Above is your clue. Your build could not run `configure`. Your problem
is most likely in

```
ExternalProject_Add(project_libsndfile
GIT_REPOSITORY https://github.com/erikd/libsndfile.git
PREFIX  lib/libsndfile
CONFIGURE_COMMAND   /configure
BUILD_COMMAND   make
BUILD_IN_SOURCE 1
INSTALL_COMMAND echo Skipping install step for libsndfile
)
```

Running a `configure` script is not going to work on Windows out of
the box because libsnd uses GNU autotools which is for made for UNIX
like operating systems. You should try and figure out how (if it's
even possible) to build libsnd on Windows. At glance at the GitHub
page shows they have a CMake build system but the docs say it will
likely only work on Linux. There are some commits that mention MINGW
so maybe it might be possible to build using the MSYS environment.

Good Luck.
-- 

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 winodws

2017-03-02 Thread aishwarya selvaraj
Hi all ,
I was trying to build my .cpp file in windows in Windows platform (windows
10) using cmake .
My .cpp file makes use of two external libraries 1)armadillo 2)libsnd file.
I have written a corresponding cmakelist.txt to compile and obtain the
binary .
I was successful in doing so in Linux , when it come to Windows I obtain
the following error .

















*3>Time Elapsed 00:00:02.062> Current branch master is up to
date.2> No patch step for 'project_libsndfile'2> Performing
autogen step for 'project_libsndfile'2> Performing configure step
for 'project_libsndfile'2>
'C:\Users\computing7\Desktop\TSM_cmake\build\lib\libsndfile\src\project_libsndfile\configure'
is not recognized as an internal or external command,2> operable
program or batch file.2> 1>2>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5):
error MSB6006: "cmd.exe" exited with code 9009.2>   Done executing task
"CustomBuild" -- FAILED.2> 1>2>Done building target "CustomBuild" in
project "project_libsndfile.vcxproj" -- FAILED.2>2>Build FAILED.*
PFA of the cmakelist.txt in case for clarifications.
Why does this error come ?
Is it possible to compile and build libsndfile in windows successfully ?


-- 
Regards,
Aishwarya Selvaraj
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(TSM2)


include(ExternalProject)
MESSAGE(STATUS "Trying to install armadillo...")

ExternalProject_Add(armadillo
  URL https://github.com/lsolanka/armadillo/archive/master.zip
  PREFIX ${CMAKE_CURRENT_BINARY_DIR}/armadillo_library
  CONFIGURE_COMMAND ""
#--Build step-
  BUILD_COMMAND ""
#--Install step---
  UPDATE_COMMAND "" # Skip annoying updates for every build
  INSTALL_COMMAND ""
 )
include_directories(${CMAKE_CURRENT_BINARY_DIR}/armadillo_library/src/armadillo/include)



include(ExternalProject)
MESSAGE(STATUS "Trying to install libsndfile...")

ExternalProject_Add(project_libsndfile
GIT_REPOSITORY https://github.com/erikd/libsndfile.git
PREFIX  lib/libsndfile
CONFIGURE_COMMAND   /configure
BUILD_COMMAND   make
BUILD_IN_SOURCE 1
INSTALL_COMMAND echo Skipping install step for libsndfile
)



ExternalProject_Add_Step(project_libsndfile autogen
   COMMAND  /autogen.sh
   DEPENDEESupdate
   DEPENDERSconfigure
)

ExternalProject_Get_Property(project_libsndfile BINARY_DIR)
SET(libsndfile_lib_dir "${BINARY_DIR}/src/.libs")
SET(libsndfile_inc_dir "${BINARY_DIR}/src")


ADD_LIBRARY(libsndfile STATIC IMPORTED)
SET_PROPERTY(TARGET libsndfile PROPERTY IMPORTED_LOCATION 
${libsndfile_lib_dir}/libsndfile.a)

SET(LIBSNDFILE_INCLUDE_PATH "${install_dir}/src/project_libsndfile-build/src/")

INCLUDE_DIRECTORIES(include ${libsndfile_inc_dir})



ADD_EXECUTABLE(tsm ${PROJECT_SOURCE_DIR}/src/TSM_CODE_V3.cpp)
TARGET_LINK_LIBRARIES(tsm ${ARMADILLO} libsndfile )




-- 

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] -DCMAKE_BUILD_TYPE=Release breaks build process

2017-03-02 Thread Bernhard Seckinger
Hi Jan,

> just a general idea as how to approach this:
> - make a clean cmake directory and try again, or at least remove the
> CMakeCache.txt

I'm allready doing this all the time... :-)

> - if you use the make generator, add -DCMAKE_VERBOSE_MAKEFILE=ON when
> calling cmake to know what exactly is being used during build

Basically it's (works)

/usr/bin/gdc  -I.. -fversion=slang  -oCMakeFiles/starbattle.dir/__/puzzle
-c /home/berni/Croco/Entwicklung/Croco/types/puzzle.d
[...]
/usr/bin/gdc CMakeFiles/starbattle.dir/starbattle
CMakeFiles/starbattle.dir/starbattle_check_puzzle
CMakeFiles/starbattle.dir/starbattle_check_solution
CMakeFiles/starbattle.dir/__/puzzle
CMakeFiles/starbattle.dir/__/puzzle_options
CMakeFiles/starbattle.dir/__/puzzle_unittest
CMakeFiles/starbattle.dir/__/spf_tools CMakeFiles/starbattle.dir/__/puzzle_io
CMakeFiles/starbattle.dir/__/puzzle_timer CMakeFiles/starbattle.dir/__/slang
-ostarbattle  -L/usr/lib/gcc/x86_64-linux-gnu/6 ../libslang_wrapper.o.a
-lslang -lc  

vs. (does not work)

/usr/bin/gdc  -O3 -fomit-frame-pointer -fweb -frelease -finline-functions
-I.. -fversion=slang  -oCMakeFiles/starbattle.dir/__/puzzle
-c /home/berni/Croco/Entwicklung/Croco/types/puzzle.d
[...]
/usr/bin/gdc  -O3 -fomit-frame-pointer -fweb -frelease -finline-functions
CMakeFiles/starbattle.dir/starbattle
CMakeFiles/starbattle.dir/starbattle_check_puzzle
CMakeFiles/starbattle.dir/starbattle_check_solution
CMakeFiles/starbattle.dir/__/puzzle
CMakeFiles/starbattle.dir/__/puzzle_options
CMakeFiles/starbattle.dir/__/puzzle_unittest
CMakeFiles/starbattle.dir/__/spf_tools CMakeFiles/starbattle.dir/__/puzzle_io
CMakeFiles/starbattle.dir/__/puzzle_timer CMakeFiles/starbattle.dir/__/slang
-ostarbattle  -L/usr/lib/gcc/x86_64-linux-gnu/6 ../libslang_wrapper.o.a
-lslang -lc  

One can even remove "-fomit-frame-pointer -fweb -frelease -finline-functions"
and set -O1 instead of -O3 to get the same result.

And that's the output of the last call:

CMakeFiles/starbattle.dir/starbattle_check_puzzle: In function
`_DT256_D25starbattle_check_solution25Starbattle_Check_Solution16extract_solutionMFHAyaAyaZv':
starbattle_check_puzzle.d:
(.text._DT256_D25starbattle_check_solution25Starbattle_Check_Solution16extract_solutionMFHAyaAyaZv
[_DT256_D25starbattle_check_solution25Starbattle_Check_Solution16extract_solutionMFHAyaAyaZv]
+0x8e): undefined reference to
`_D25starbattle_check_solution25Starbattle_Check_Solution16extract_solutionMFHAyaAyaZ12__dgliteral2MFNaNbNiNfZAxa'
CMakeFiles/starbattle.dir/starbattle_check_puzzle: In function
`_DT256_D10starbattle10Starbattle14extract_puzzleMFHAyaAyaZv':
starbattle_check_puzzle.d:
(.text._DT256_D10starbattle10Starbattle14extract_puzzleMFHAyaAyaZv
[_DT256_D10starbattle10Starbattle14extract_puzzleMFHAyaAyaZv]+0x12): undefined
reference to
`_D10starbattle10Starbattle14extract_puzzleMFHAyaAyaZ12__dgliteral2MFNaNbNiNfZAya'
starbattle_check_puzzle.d:
(.text._DT256_D10starbattle10Starbattle14extract_puzzleMFHAyaAyaZv
[_DT256_D10starbattle10Starbattle14extract_puzzleMFHAyaAyaZv]+0xbd): undefined
reference to
`_D10starbattle10Starbattle14extract_puzzleMFHAyaAyaZ12__dgliteral3MFNaNbNiNfZAya'
CMakeFiles/starbattle.dir/starbattle_check_solution: In function
`_DT96_D10starbattle10Starbattle14extract_puzzleMFHAyaAyaZv':
starbattle_check_solution.d:
(.text._DT96_D10starbattle10Starbattle14extract_puzzleMFHAyaAyaZv
[_DT96_D10starbattle10Starbattle14extract_puzzleMFHAyaAyaZv]+0xf): undefined
reference to
`_D10starbattle10Starbattle14extract_puzzleMFHAyaAyaZ12__dgliteral2MFNaNbNiNfZAya'
starbattle_check_solution.d:
(.text._DT96_D10starbattle10Starbattle14extract_puzzleMFHAyaAyaZv
[_DT96_D10starbattle10Starbattle14extract_puzzleMFHAyaAyaZv]+0xba): undefined
reference to
`_D10starbattle10Starbattle14extract_puzzleMFHAyaAyaZ12__dgliteral3MFNaNbNiNfZAya'
collect2: error: ld returned 1 exit status

Berni

-- 
-- Meine Rätselwebseite: www.croco-puzzle.com

-- 

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] -DCMAKE_BUILD_TYPE=Release breaks build process

2017-03-02 Thread Konstantin Tokarev


02.03.2017, 13:58, " Jan Hegewald" :
> Hi Berni,
>
>>  On 2 Mar 2017, at 10:12, Bernhard Seckinger  
>> wrote:
>
> ...
>>  but when I try to build with
>>  -DCMAKE_BUILD_TYPE=Release the linker complains about missing functions.
>
> ...
>>  Maybe you can give me some ideas on how to proceed?
>
> ...
>
> just a general idea as how to approach this:
> - make a clean cmake directory and try again, or at least remove the 
> CMakeCache.txt
> - if you use the make generator, add -DCMAKE_VERBOSE_MAKEFILE=ON when calling 
> cmake to know what exactly is being used during build

This is not a good advice, better don't touch CMAKE_VERBOSE_MAKEFILE and use 
make VERBOSE=1 whenever you want to see details

>
> HTH,
> Jan Hegewald
>
> --
>
> 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

-- 
Regards,
Konstantin
-- 

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] -DCMAKE_BUILD_TYPE=Release breaks build process

2017-03-02 Thread  Jan Hegewald
Hi Berni,

> On 2 Mar 2017, at 10:12, Bernhard Seckinger  wrote:
...
> but when I try to build with
> -DCMAKE_BUILD_TYPE=Release the linker complains about missing functions.
...
> Maybe you can give me some ideas on how to proceed?
...

just a general idea as how to approach this:
- make a clean cmake directory and try again, or at least remove the 
CMakeCache.txt
- if you use the make generator, add -DCMAKE_VERBOSE_MAKEFILE=ON when calling 
cmake to know what exactly is being used during build

HTH,
Jan Hegewald

-- 

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] -DCMAKE_BUILD_TYPE=Release breaks build process

2017-03-02 Thread Bernhard Seckinger
Hi all,

I'm relatively new to cmake and tried to use it for one of my projects.
Meanwhile I've got a working version, but when I try to build with
-DCMAKE_BUILD_TYPE=Release the linker complains about missing functions.

I guess, that this happens, because all the files are compiled separately and
-O3 removes some functions (or inlines them or whatever). When I compile
manually using -O3, everything works, but in that case I do compilation of
all files and linking in one stroke.

I'm using cmake-d (1), a cmake extension to compile D-files. On my computer
(debian, testing) cmake chooses gdc for compilation which is a D-frontend to
gcc.

I'm quite unsure how I should proceed to make it work. Although I read various
tutorials and stuff about cmake I still feel not like having understood,
what's going on behind the scenes. (What I'm missing is something like the
autotools-guide (2) for cmake.)

Maybe you can give me some ideas on how to proceed?

Berni

PS: And of course, if anyone would like to have a direct look at my
project and give some comments on it, I'd be really happy. You can find it at
github (3).

PPS: I asked a similar question in the D-Forum, but got no answers there,
probably because it's the wrong place to do so...

(1) https://github.com/dcarp/cmake-d
(2)
http://freesoftwaremagazine.com/articles/autotools_a_guide_to_autoconf_automake_libtool/
(3) https://github.com/crocopaw/croco/tree/devel

-- 
-- Meine Rätselwebseite: www.croco-puzzle.com

-- 

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