[Cmake-commits] CMake branch, master, updated. v3.8.1-1337-ge75ac5a

2017-05-28 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  e75ac5aa03934d259adf5d9300c24539161131af (commit)
  from  d375618921e16c229e748c87ea16190f2de74337 (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=e75ac5aa03934d259adf5d9300c24539161131af
commit e75ac5aa03934d259adf5d9300c24539161131af
Author: Kitware Robot <kwro...@kitware.com>
AuthorDate: Mon May 29 00:01:05 2017 -0400
Commit: Kitware Robot <kwro...@kitware.com>
CommitDate: Mon May 29 00:01:05 2017 -0400

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index 42be644..510911d 100644
--- a/Source/CMakeVersion.cmake
+++ b/Source/CMakeVersion.cmake
@@ -1,5 +1,5 @@
 # CMake version number components.
 set(CMake_VERSION_MAJOR 3)
 set(CMake_VERSION_MINOR 8)
-set(CMake_VERSION_PATCH 20170528)
+set(CMake_VERSION_PATCH 20170529)
 #set(CMake_VERSION_RC 1)

---

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


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


[CMake] Trouble finding libjpeg package on ubuntu

2017-05-28 Thread Aaron Boxer
Hello,
I would like cmake to find the libjpeg installation on my ubuntu system.

I have the

find_package(jpeg) line in my cmake file, and this works on windows, but on
Ubuntu with libjpeg-turbo installed, it can't find it.

Here is a list of the install directories for the libjpeg-turbo8-dev
package:

/.
/usr
/usr/include
/usr/include/turbojpeg.h
/usr/include/jerror.h
/usr/include/x86_64-linux-gnu
/usr/include/x86_64-linux-gnu/jconfig.h
/usr/include/jmorecfg.h
/usr/include/jpegint.h
/usr/include/jpeglib.h
/usr/share
/usr/share/doc
/usr/share/doc/libjpeg-turbo8-dev
/usr/share/doc/libjpeg-turbo8-dev/copyright
/usr/share/doc/libjpeg-turbo8-dev/libjpeg.txt.gz
/usr/share/doc/libjpeg-turbo8-dev/structure.txt.gz
/usr/share/doc/libjpeg-turbo8-dev/README.gz
/usr/share/doc/libjpeg-turbo8-dev/README-turbo.txt.gz
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libturbojpeg.a
/usr/lib/x86_64-linux-gnu/libjpeg.a
/usr/lib/x86_64-linux-gnu/pkgconfig


Any help would be greatly appreciated.

Thanks!

Aaron
-- 

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] Is there analog of source command from bash ?

2017-05-28 Thread Alan W. Irwin

On 2017-05-29 00:36+0300 Konstantin Tokarev wrote:




28.05.2017, 16:58, "Denis Kotov" :

Hi everyone,

I have tried to find solution to the following problem:
There is the project with environment variable described in setenv.sh file
Old build process looks like:
source setenv.sh
make release

But I want to accomplish this by CMake. But I have realized that CMake does not 
have analog of source command that's why the following command does not work:
execute_process(COMMAND bash -c "source ../setenv")


You can run  source setenv.sh before you run cmake, or in the same shell 
invocation with command that requires environment


That method just makes those environment variables available at cmake
time and it will require more work to propagate that environment to
the environment used at make time.

@Denis (the OP).  I have an entirely different suggestion. You will
have to experiment (since I have never tried this myself), but
fundamentally you want a command to run at make time before you build
the release target.

I am pretty sure the following idea would implement this without issues:

add_custom_target(update_environment
COMMAND bash -c "source "
)
add_custom_target(release ALL
COMMAND command1
COMMAND command2
[...]
)
# Make sure the above command is run every time before the release
# target is built
add_dependencies(release update_environment)

N.B. according to
 this
method will only work on top-level targets that you create yourself
with add_executable, add_library, and add_custom_target; and will NOT
work (for good reasons, see below) on CMake-generated high-level
targets such as "test", "all", and "install".  But for example, if you
implement your add_custom_target for the "release" target with the ALL
attribute as above, it will make that custom target a dependency of
the "all" target which itself is (automatically) a dependency of the
"install" target.  So the target dependency chain resulting from
the above idea
would be

install -> all -> release -> update_environment

And similarly for the "test" high-level target.

Which I think is what you want for the dependency chain between the high-level 
targets
and custom targets.

Good luck, and please let us know the results of your experiments with this
idea.

Alan

__
Alan W. Irwin

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

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

Linux-powered Science
__
--

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Is there analog of source command from bash ?

2017-05-28 Thread Konstantin Tokarev


28.05.2017, 16:58, "Denis Kotov" :
> Hi everyone,
>
> I have tried to find solution to the following problem:
> There is the project with environment variable described in setenv.sh file
> Old build process looks like:
> source setenv.sh
> make release
>
> But I want to accomplish this by CMake. But I have realized that CMake does 
> not have analog of source command that's why the following command does not 
> work:
> execute_process(COMMAND bash -c "source ../setenv")

You can run  source setenv.sh before you run cmake, or in the same shell 
invocation with command that requires environment

>
> Because CMake creates a child process.
> How can I import variables that was set in some sh file ?
>
> Thanks,
> Best Regards
> Denis Kotov
> ,--
>
> 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] Is there analog of source command from bash ?

2017-05-28 Thread Magnus Therning

Denis Kotov  writes:

> Hi everyone,
>
> I have tried to find solution to the following problem: There is the
> project with environment variable described in *setenv.sh* file
> Old build process looks like:
> source *setenv.sh*
> make release
>
> But I want to accomplish this by *CMake*. But I have realized that
> *CMake* does not have analog of source command that's why the
> following command does not work:
> execute_process(COMMAND bash -c "source ../setenv")
>
> Because *CMake* creates a child process.
> How can I import variables that was set in some sh file ?

What I usually do is rewrite the sh file into a proper CMake package and
then use find_package() to pull it in. Another option is of course to
just include() it.

/M

--
Magnus Therning  OpenPGP: 0x927912051716CE39
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe   http://therning.org/magnus

If our ideas of intellectual property are wrong, we must change them,
improve them and return them to their original purpose. When
intellectual property rules diminish the supply of new ideas, they
steal from all of us.
 — Andrew Brown, November 19, 2005, The Guardian


signature.asc
Description: PGP 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] Is there analog of source command from bash ?

2017-05-28 Thread Denis Kotov
Hi everyone,

I have tried to find solution to the following problem:
There is the project with environment variable described in *setenv.sh* file
Old build process looks like:
source *setenv.sh*
make release

But I want to accomplish this by *CMake*. But I have realized that *CMake*
does not have analog of source command that's why the following command
does not work:
execute_process(COMMAND bash -c "source ../setenv")

Because *CMake* creates a child process.
How can I import variables that was set in some sh file ?

*Thanks,*

*Best RegardsDenis Kotov*
-- 

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.1-1336-gd375618

2017-05-28 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  d375618921e16c229e748c87ea16190f2de74337 (commit)
   via  ff1563199cfa36fca21889fce8a6b89bcb7db241 (commit)
   via  370d0d25315cc2fae38e1c6397b0094d43384c16 (commit)
   via  f1f21e3077cd6f1519d9a2b50e211b4c233d12cd (commit)
   via  9316120c80119c64a8d201bd70d7c58852ff6d7e (commit)
   via  783fbb77e7b48d5816f16773f977250453cd43ee (commit)
   via  fc51b92c802f64dc028cf99f4caa879b1571773a (commit)
  from  f8642f953d3d8547bd31fcb35a4737fa91d9126f (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=d375618921e16c229e748c87ea16190f2de74337
commit d375618921e16c229e748c87ea16190f2de74337
Merge: ff15631 370d0d2
Author: Brad King 
AuthorDate: Sun May 28 13:22:29 2017 +
Commit: Kitware Robot 
CommitDate: Sun May 28 09:22:33 2017 -0400

Merge topic 'sunpro-std-flags'

370d0d25 SunPro: update flags used for CMake itself
f1f21e30 SunPro: set -library=stlport as standard compile option for C++98
9316120c SunPro: add standard compile option for C++03
783fbb77 Tests: Compile entire Plugin test with the same language standard

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


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ff1563199cfa36fca21889fce8a6b89bcb7db241
commit ff1563199cfa36fca21889fce8a6b89bcb7db241
Merge: f8642f9 fc51b92
Author: Brad King 
AuthorDate: Sun May 28 13:21:40 2017 +
Commit: Kitware Robot 
CommitDate: Sun May 28 09:21:43 2017 -0400

Merge topic 'intel-std-flags'

fc51b92c Intel: avoid variables in language standard flags

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


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=370d0d25315cc2fae38e1c6397b0094d43384c16
commit 370d0d25315cc2fae38e1c6397b0094d43384c16
Author: Daniel Pfeifer 
AuthorDate: Mon May 22 23:28:51 2017 +0200
Commit: Brad King 
CommitDate: Fri May 26 13:26:40 2017 -0400

SunPro: update flags used for CMake itself

Special flags should no longer be required when CMake is built with a
recent version of CMake.

diff --git a/CompileFlags.cmake b/CompileFlags.cmake
index d1f4f13..7a9d4cd 100644
--- a/CompileFlags.cmake
+++ b/CompileFlags.cmake
@@ -59,7 +59,8 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "^parisc")
   endif()
 endif()
 
-if (CMAKE_CXX_COMPILER_ID STREQUAL SunPro)
+if (CMAKE_CXX_COMPILER_ID STREQUAL SunPro AND
+NOT DEFINED CMAKE_CXX${CMAKE_CXX_STANDARD}_STANDARD_COMPILE_OPTION)
   if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.13)
 if (NOT CMAKE_CXX_STANDARD OR CMAKE_CXX_STANDARD EQUAL 98)
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++03")

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f1f21e3077cd6f1519d9a2b50e211b4c233d12cd
commit f1f21e3077cd6f1519d9a2b50e211b4c233d12cd
Author: Daniel Pfeifer 
AuthorDate: Mon May 22 23:22:59 2017 +0200
Commit: Brad King 
CommitDate: Fri May 26 13:26:39 2017 -0400

SunPro: set -library=stlport as standard compile option for C++98

diff --git a/Modules/Compiler/SunPro-CXX.cmake 
b/Modules/Compiler/SunPro-CXX.cmake
index f8030f1..4b0a21d 100644
--- a/Modules/Compiler/SunPro-CXX.cmake
+++ b/Modules/Compiler/SunPro-CXX.cmake
@@ -42,6 +42,10 @@ if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.13)
   set(CMAKE_CXX11_STANDARD_COMPILE_OPTION "-std=c++11")
   set(CMAKE_CXX11_EXTENSION_COMPILE_OPTION "-std=c++11")
   set(CMAKE_CXX_LINK_WITH_STANDARD_COMPILE_OPTION 1)
+else()
+  set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "-library=stlport")
+  set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION "-library=stlport")
+  set(CMAKE_CXX_LINK_WITH_STANDARD_COMPILE_OPTION 1)
 endif()
 
 __compiler_check_default_language_standard(CXX 5.13 98)

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9316120c80119c64a8d201bd70d7c58852ff6d7e
commit 9316120c80119c64a8d201bd70d7c58852ff6d7e
Author: Daniel Pfeifer 
AuthorDate: Fri May 19 15:01:38 2017 -0600
Commit: Brad King 
CommitDate: Fri May 26 13:26:39 2017 -0400

SunPro: add standard compile option for C++03

diff --git a/Modules/Compiler/SunPro-CXX.cmake 
b/Modules/Compiler/SunPro-CXX.cmake
index 5db7987..f8030f1 100644
--- a/Modules/Compiler/SunPro-CXX.cmake
+++ b/Modules/Compiler/SunPro-CXX.cmake
@@ -37,8 +37,8 @@ set(CMAKE_CXX_CREATE_STATIC_LIBRARY
   "  ")
 
 if (NOT 

[Cmake-commits] CMake branch, master, updated. v3.8.1-1315-gbc341a9

2017-05-28 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  bc341a9d5e3863dd80393144eae88f27883db764 (commit)
   via  478ce1c7b4e46d7a370844921c2138e61d61c4a4 (commit)
   via  1ebb421bfc8eb21a4e5e56e501a62d000a9f59db (commit)
   via  362435f02a52008a90a1c19862f09b01f1b5bd7f (commit)
  from  e6c7c420b1b5bf03902e34e15f5eb796e05c8a04 (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=bc341a9d5e3863dd80393144eae88f27883db764
commit bc341a9d5e3863dd80393144eae88f27883db764
Merge: e6c7c42 478ce1c
Author: Brad King 
AuthorDate: Sun May 28 13:03:39 2017 +
Commit: Kitware Robot 
CommitDate: Sun May 28 09:03:46 2017 -0400

Merge topic 'update-libuv'

478ce1c7 libuv: Update build within CMake
1ebb421b Merge branch 'upstream-libuv' into update-libuv
362435f0 libuv 2017-05-25 (dc596109)

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


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=478ce1c7b4e46d7a370844921c2138e61d61c4a4
commit 478ce1c7b4e46d7a370844921c2138e61d61c4a4
Author: Brad King 
AuthorDate: Fri May 26 13:48:48 2017 -0400
Commit: Brad King 
CommitDate: Fri May 26 13:48:48 2017 -0400

libuv: Update build within CMake

Update our CMake build rules to account for upstream changes.

diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt
index 618f79d..3252e3d 100644
--- a/Utilities/cmlibuv/CMakeLists.txt
+++ b/Utilities/cmlibuv/CMakeLists.txt
@@ -164,7 +164,10 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
 src/unix/linux-inotify.c
 src/unix/linux-syscalls.c
 src/unix/linux-syscalls.h
+src/unix/procfs-exepath.c
 src/unix/proctitle.c
+src/unix/sysinfo-loadavg.c
+src/unix/sysinfo-memory.c
 )
 endif()
 
@@ -249,6 +252,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
   )
   endif()
   list(APPEND uv_sources
+src/unix/no-proctitle.c
 src/unix/sunos.c
 )
 endif()

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1ebb421bfc8eb21a4e5e56e501a62d000a9f59db
commit 1ebb421bfc8eb21a4e5e56e501a62d000a9f59db
Merge: bc407ba 362435f
Author: Brad King 
AuthorDate: Fri May 26 13:33:41 2017 -0400
Commit: Brad King 
CommitDate: Fri May 26 13:33:41 2017 -0400

Merge branch 'upstream-libuv' into update-libuv

* upstream-libuv:
  libuv 2017-05-25 (dc596109)

diff --cc Utilities/cmlibuv/include/uv-posix.h
index 000,9a96634..9a96634
mode 00,100644..100644
--- a/Utilities/cmlibuv/include/uv-posix.h
+++ b/Utilities/cmlibuv/include/uv-posix.h
diff --cc Utilities/cmlibuv/include/uv.h
index ce04875,000..38f5676
mode 100644,00..100644
--- a/Utilities/cmlibuv/include/uv.h
+++ b/Utilities/cmlibuv/include/uv.h
@@@ -1,1509 -1,0 +1,1511 @@@
 +/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
 + *
 + * Permission is hereby granted, free of charge, to any person obtaining a 
copy
 + * of this software and associated documentation files (the "Software"), to
 + * deal in the Software without restriction, including without limitation the
 + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 + * sell copies of the Software, and to permit persons to whom the Software is
 + * furnished to do so, subject to the following conditions:
 + *
 + * The above copyright notice and this permission notice shall be included in
 + * all copies or substantial portions of the Software.
 + *
 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
DEALINGS
 + * IN THE SOFTWARE.
 + */
 +
 +/* See https://github.com/libuv/libuv#documentation for documentation. */
 +
 +#ifndef UV_H
 +#define UV_H
 +
 +/* Include KWSys Large File Support configuration. */
 +#include 
 +
 +#ifdef __cplusplus
 +extern "C" {
 +#endif
 +
 +#ifdef _WIN32
 +  /* Windows - set up dll import/export decorators. */
 +# if defined(BUILDING_UV_SHARED)
 +/* Building shared library. */
 +#   define UV_EXTERN __declspec(dllexport)
 +# elif defined(USING_UV_SHARED)
 +/* Using shared library. */
 +#   define UV_EXTERN