[Cmake-commits] CMake branch, master, updated. v3.5.2-791-ge0fbd95

2016-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  e0fbd95f06ca4d1b0274da5b9a1e3c58c4f93ca2 (commit)
  from  797a332a61273e8fd1791e44800850fcbb6cd9aa (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=e0fbd95f06ca4d1b0274da5b9a1e3c58c4f93ca2
commit e0fbd95f06ca4d1b0274da5b9a1e3c58c4f93ca2
Author: Kitware Robot <kwro...@kitware.com>
AuthorDate: Sun May 29 00:01:05 2016 -0400
Commit: Kitware Robot <kwro...@kitware.com>
CommitDate: Sun May 29 00:01:05 2016 -0400

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index e5c5a3e..6d78ef3 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 5)
-set(CMake_VERSION_PATCH 20160528)
+set(CMake_VERSION_PATCH 20160529)
 #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-developers] BundleUtilities Copy Framework

2016-05-28 Thread Simon Wells
Currently BundleUtilities will only copy the binary and the resources
directory of frameworks, This may not include any other dependencies
in the binary folder. This is immediately apparent with
Python.framework and will not copy over the standard python files.

I tried using the copy_full_framework but as that traverses all
symlinks it makes the framework 5x the size it needs to be (about
900MB)... Would it not be better for copy framework to copy over the
version folder from x.framework/Versions/-VERSION- and then create the
symlinks for which the code already exists?

I am currently making a patch but thought i would see if anyone had
any cases where this is not valid, And is the cmake module meant to
work around frameworks that don't follow apples framework structure as
seen here 
https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html
except in cases like Qt where they just put Info.plist in the wrong
place that is easy to fix

If someone knows of a system framework that doesn't follow the bundle
structure as provided by apple it will allow me to test for issues
with my code

thanks

Simon
-- 

Powered by www.kitware.com

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

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

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

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

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


[cmake-developers] output expressions fails with either a build.ninja error or wrong escaped space

2016-05-28 Thread jerry . c . t

Hi,

i am trying the example of the Output Expressions from here:

 

https://cmake.org/cmake/help/v3.5/manual/cmake-generator-expressions.7.html

 

But i have problems getting it working. It either fails with

 

ninja: error: build.ninja:83: bad $-escape (literal $ must be written as $$)
  COMMAND = cd /tmp/bug/build && /usr/bin/c++ -E -P -MMD -I$ ...
   ^ near here


if i omit the start and end quote of the -I$

 

[1/1] cd /tmp/bug/build && /usr/bin/c++ -E -P -MMD -I/tmp\ -I/tmp/bug/build dummy.cpp -o dummy.i
FAILED: cd /tmp/bug/build && /usr/bin/c++ -E -P -MMD -I/tmp\ -I/tmp/bug/build dummy.cpp -o dummy.i
dummy.cpp:1:19: fatal error: dummy.h: No such file or directory

 

Removing the backslash in build.ninja with escaped version it works. I attached a reproducer. I tried it with linux. Run it in a build directory with


cmake -GNinja 
ninja custom

 

What am i doing wrong or is it a bug?

 Jerry

 

## reproducer ##

cmake_minimum_required(VERSION 3.2)

add_library(dummy dummy.cpp)
target_include_directories(dummy PUBLIC /tmp)
target_include_directories(dummy PUBLIC ${CMAKE_BINARY_DIR})

add_custom_target(custom
  ${CMAKE_CXX_COMPILER} -E -P -MMD
  "-I$, -I>"
  dummy.cpp -o dummy.i
)
FILE(WRITE ${CMAKE_BINARY_DIR}/dummy.cpp "#include \nint main(void){return 0;}\n")
FILE(WRITE ${CMAKE_BINARY_DIR}/dummy.h "void foo() {}\n")

 

-- 

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] How to run an install command as administrator?

2016-05-28 Thread Gonzalo Garramuño

On 26/05/2016 01:16 p.m., Juan Dent wrote:


Hi,

I have a simple CMakeLists.txt that tries to install at a place in the 
drive that requires administrator privileges. How can I make that 
install command to run as administrator, is there a way in CMake?



If you are on Linux or Mac, it is easy.  Just do:

$ sudo make install

If you are on Windows, create a .bat file with the cmake command you 
want to run and then RMB on it and select Run As Administrator.


-- 

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] CPACK_NSIS_EXTRA_INSTALL_COMMANDS before install

2016-05-28 Thread Gonzalo Garramuño

Hi,

I am using CPACK_NSIS_EXTRA_INSTALL_COMMANDS to create a new page where 
the user can select file associations (using the full syntax of NSIS).  
My problem is that the page gets shown after the install is done.  I 
would like to have a variable which puts the NSIS commands before the 
install.

Is there any way or variable to achieve that?

gets shown after the install
   is done.  I would like to have a variable which puts the NSIS
   commands before the install.
   Is there any way or variable to achieve that?
   
 

--

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