[cmake-developers] [CMake 0012227]: Transitive dependencies and target properties

2011-05-26 Thread Mantis Bug Tracker

The following issue has been SUBMITTED. 
== 
http://public.kitware.com/Bug/view.php?id=12227 
== 
Reported By:AlexUA
Assigned To:
== 
Project:CMake
Issue ID:   12227
Category:   CMake
Reproducibility:always
Severity:   major
Priority:   high
Status: new
== 
Date Submitted: 2011-05-26 09:19 EDT
Last Modified:  2011-05-26 09:19 EDT
== 
Summary:Transitive dependencies and target properties
Description: 
CMake have transitive dependecies of libraries linked to target. For example if
A is static library wich depends from SomeLib. And target B is executable wich
depends from A(will link both with A and SomeLib due to transitive dependency).
But the issue is that if we have some specific link_libraries() settings for A
the target B won't link.
I've tryed to fix this manually through usage of additional target property like
TgLinkDirectories this property is set in target A and the used in all dependent
targets.
But this solution will work only in some traverse orders (A-B which might be
not the same in huge and complicated projects).

Actually I need the same functionality for include_directories().
This will help me achive of the functionality like in bjam.
Thanks in advance
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2011-05-26 09:19 AlexUA New Issue
==

___
cmake-developers mailing list
cmake-developers@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [cmake-developers] Patches to add XXX_RUNTIME_LIBRARIES and XXX_RUNTIME_LIBRARY_DIRS to FindZLIB.cmake, FindXml2.cmake, and FindXslt.cmake

2011-05-26 Thread Brad King
On 05/25/2011 04:44 PM, Rick Yorgason wrote:
 But now you install the program and try to run it.  Crash!  No DLLs 
 found, because on Windows it's standard to install the DLLs into the 
 same directory as the .exe.
[snip]
 our only option is to copy the DLLs into the build dirs.

We typically use launcher scripts/tools that add the right thing to the
PATH and then invoke the real program.  This is often done on UNIX systems
too because an application that comes as a binary in a tarball and uses
shared libraries needs a launcher to set LD_LIBRARY_PATH before running
the real binary.  Otherwise the tree is not relocatable.

-Brad
___
cmake-developers mailing list
cmake-developers@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [CMake] Error on uninitialized vars?

2011-05-26 Thread Johan Björk
Hi,

Basically we need to compile a few files with specific flags (only
in release builds, and we had no test that checked for this) and I had
a typo in the flag variable, resulting no extra flags being set.

SET_SOURCE_FILES_PROPERTIES(some.cpp files.cpp PROPERTIES
COMPILE_FLAGS ${SPECIAL_Flgs})

/Johan


On Wed, May 25, 2011 at 6:12 PM, David Cole david.c...@kitware.com wrote:
 Johan,

 I do not think there's a built-in way to make these warnings into errors...
 It would be easy enough to do, but it's not there right now.

 One reason is that most projects were developed with the understanding that
 ${uninitialized_variable} resolves to empty. Many projects even depend on
 this, and so making it a warning first (that must be explicitly turned on),
 seemed to be the right way to approach it.

 I'm curious: what sorts of nasty bugs did you find...?


 HTH,
 David


 On Tue, May 24, 2011 at 7:42 AM, Johan Björk p...@spotify.com wrote:

 Hi guys,

 I just discovered the --warn-uninitialized flag to cmake, and in the
 process found some really nasty bugs. Is there any way to enable this
 from the CMakeLists.txt files? Is there a corresponding
 --error-uninitialized value?

 Thanks
 /Johan
 ___
 Powered by www.kitware.com

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

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

 Follow this link to subscribe/unsubscribe:
 http://www.cmake.org/mailman/listinfo/cmake


___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Using ctest with --ctest-config

2011-05-26 Thread Olivier Clatz


Hello, 



I'm trying to use ctest with multiple CTestConfig.cmake files. 

When I have a single CTestConfig.cmake in my code root directory, and run : 

ctest -D Experimental 

Ctest runs and submit results correctly. 



Now when I move this file, let's say into C:\dir\myCTestConfig.cmake , and run 
: 

ctest -D Experimental --ctest-config C:\dir\myCTestConfig.cmake 

Ctest runs but does not submit resuls. It seems to ignore the file given as 
argument wi th option --ctest-config. 



I'm using windows, and made different test, with , \\, /. 



Any suggestion ? 



Olivier 

ctest -D Experimental --ctest-config C:\dir\myCTestConfig.cmake 

Ctest runs but does not submit resuls. It seems to ignore the file given as 
argument wi th option --ctest-config. 



I'm using windows, and made different test, with , \\, /. 



Any suggestion ? 



Olivier___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] Purify Arguments

2011-05-26 Thread Jason Gochanour

Hello all,

Is it possible to send command line arguments to purify when you run a 
ctest_memcheck?  I need to find a way to exclude a few DLLs from our 
nightly memory check testing.


Regards,
-Jason Gochanour
___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Cannot find source file: *.rc

2011-05-26 Thread Aaron_Wright
 From: Michael Wild them...@gmail.com
 To: cmake@cmake.org
 Date: 05/25/2011 10:08 PM
 Subject: Re: [CMake] Cannot find source file: *.rc
 Sent by: cmake-boun...@cmake.org
 
 On 05/25/2011 11:40 PM, aaron_wri...@selinc.com wrote:
  I use mc.exe to generate an *.rc file and some headers for my program.
  The *.rc file is listed as an output of a custom command and as a 
source
  to an executable. During configuration CMake tells me it can't find a
  source file and lists the *.rc file. I've check the generated property
  of the *.rc file and it is true, so why does CMake expect it to be
  present during configuration?
  
  I've tried to make a small example, but when I try to do that 
everything
  works. What I'm looking for is a reason why it would only effect large
  build systems on not small build system, or why does this only effect
  this *.rc and none of the other twenty or thirty files I generate? Is
  there something special about *.rc files?
  
  I'm really just grabbing at straws here because I've been trying to 
fix
  this for months, with no luck. So any ideas are welcome.
  
  ---
  Aaron Wright
 
 Is the add_custom_command call generating the *.rc file in the same
 directory as your add_executable call?
 
 Michael

It is neither in the same CMakeLists.txt nor is the *.rc file generated 
anywhere close to the executable.

I did work around this by writing a dummy file at configure time with 
FILE(WRITE. Thought that seems a little hacky.___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] 32-bit mode on 64-bit machine

2011-05-26 Thread Sara Rolfe

Hello,

I'd like to force a 64-bit machine to build a 32-bit program.  Can I  
control this using CMake?


Thanks,
Sara
___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] 32-bit mode on 64-bit machine

2011-05-26 Thread Glenn Coombs
I do exactly that for my project using these lines:

if(UNIX)
# only build 32-bit binaries
add_definitions(-m32)
set(CMAKE_EXE_LINKER_FLAGS${CMAKE_EXE_LINKER_FLAGS}
-m32)
set(CMAKE_SHARED_LIBRARY_C_FLAGS${CMAKE_SHARED_LIBRARY_C_FLAGS}
-m32)
set(CMAKE_SHARED_LIBRARY_CXX_FLAGS
${CMAKE_SHARED_LIBRARY_CXX_FLAGS} -m32)
endif()


I do it unconditionally but you could easily add an option variable to turn
this behaviour on or off accordingly.
--
Glenn


On 26 May 2011 17:54, Sara Rolfe smro...@u.washington.edu wrote:

 Hello,

 I'd like to force a 64-bit machine to build a 32-bit program.  Can I
 control this using CMake?

 Thanks,
 Sara
 ___
 Powered by www.kitware.com

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

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

 Follow this link to subscribe/unsubscribe:
 http://www.cmake.org/mailman/listinfo/cmake

___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] INSTALL with RENAME

2011-05-26 Thread J Decker
How do I install a single target as multiple names? (for something like busybox)


-- CMakeLists.txt ---
cmake_minimum_required(VERSION 2.8)

PROJECT( test )

add_executable( ${PROJECT_NAME} test.c )

install( TARGETS ${PROJECT_NAME} RUNTIME DESTINATION . RENAME util_rm.exe )
install( TARGETS ${PROJECT_NAME} RUNTIME DESTINATION . RENAME util_ls.exe )
install( TARGETS ${PROJECT_NAME} RUNTIME DESTINATION . RENAME util_mv.exe )
install( TARGETS ${PROJECT_NAME} RUNTIME DESTINATION . RENAME util_cp.exe )

--- test.c --
#include stdio.h

int main( void )
{
   return printf( I am a utility. );
}
--- output  ---

1-- Build started: Project: INSTALL, Configuration: Debug Win32 --
1  Building Custom Rule M:/tmp/inst_test/CMakeLists.txt
1  CMake does not need to re-run because
M:\tmp\inst_test\build\CMakeFiles\generate.stamp is up-to-date.
1  -- Install configuration: Debug
1  -- Installing: M:/tmp/inst_test/buid/test/./test.exe
1  -- Up-to-date: M:/tmp/inst_test/buid/test/./test.exe
1  -- Up-to-date: M:/tmp/inst_test/buid/test/./test.exe
1  -- Up-to-date: M:/tmp/inst_test/buid/test/./test.exe


--
___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] INSTALL with RENAME

2011-05-26 Thread Alexander Neundorf
On Thursday 26 May 2011, J Decker wrote:
 How do I install a single target as multiple names? (for something like
 busybox)

Did you try install(CODE ... ) or install(SCRIPT ... ) to create symlinks at 
install time ?

Alex
___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] INSTALL with RENAME

2011-05-26 Thread J Decker
It's a windows XP target, so symlinks aren't doable...

On Thu, May 26, 2011 at 12:12 PM, Alexander Neundorf
a.neundorf-w...@gmx.net wrote:
 On Thursday 26 May 2011, J Decker wrote:
 How do I install a single target as multiple names? (for something like
 busybox)

 Did you try install(CODE ... ) or install(SCRIPT ... ) to create symlinks at
 install time ?

 Alex

___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Copying files (different name)

2011-05-26 Thread Nicholas Yue

Hi,

With the FILE ( COPY .. DESTINATION) command, is there a way to 
create a second copy of a file at the DESTINATION with a different name 
? In my case, my DESTINATION is the same as the original location.


Basically, I am trying to duplicate this command line

copy header.h.vc header.h

Regards

___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Copying files (different name)

2011-05-26 Thread Tyler
Don't know if file() will work but configure_file() will. You might
want the NO_REPLACE flag or whatever it's called to prevent accidental
variable interpolation.

tyler

On Thu, May 26, 2011 at 4:46 PM, Nicholas Yue yue.nicho...@gmail.com wrote:
 Hi,

    With the FILE ( COPY .. DESTINATION) command, is there a way to create a
 second copy of a file at the DESTINATION with a different name ? In my case,
 my DESTINATION is the same as the original location.

    Basically, I am trying to duplicate this command line

    copy header.h.vc header.h

 Regards

 ___
 Powered by www.kitware.com

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

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

 Follow this link to subscribe/unsubscribe:
 http://www.cmake.org/mailman/listinfo/cmake

___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CMake pod cast

2011-05-26 Thread Bill Hoffman
Last week I did an interview for the High Performance Computing (HPC) 
and Research Computing Podcast.  It can be found here:


http://www.rce-cast.com/

-Bill
___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake



[Cmake-commits] CMake branch, next, updated. v2.8.4-1618-g08a5024

2011-05-26 Thread Philip Lowman
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  08a5024306cf00c4aa06bab6995f89d18b2154d9 (commit)
   via  517837fb470e41ee47d1f267e47f069bc8f00441 (commit)
   via  162f3fb413fc862c5c75a0402fdfbdc6dd19468b (commit)
  from  1f4e39e7539a193981a6bdabf5174bea3e0da271 (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 -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=08a5024306cf00c4aa06bab6995f89d18b2154d9
commit 08a5024306cf00c4aa06bab6995f89d18b2154d9
Merge: 1f4e39e 517837f
Author: Philip Lowman phi...@yhbt.com
AuthorDate: Thu May 26 02:23:21 2011 -0400
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Thu May 26 02:23:21 2011 -0400

Merge topic '12128_FindProtobuf_module_behavior_under_Windows_is_annoying' 
into next

517837f Fix , to - in Copyright message so it passes CMake.ModuleNotices 
test
162f3fb Merge branch 'master' of git://public.kitware.com/cmake into 
12128_FindProtobuf_module_behavior_under_Windows_is_annoying


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=517837fb470e41ee47d1f267e47f069bc8f00441
commit 517837fb470e41ee47d1f267e47f069bc8f00441
Author: Philip Lowman phi...@yhbt.com
AuthorDate: Thu May 26 02:21:58 2011 -0400
Commit: Philip Lowman phi...@yhbt.com
CommitDate: Thu May 26 02:21:58 2011 -0400

Fix , to - in Copyright message so it passes CMake.ModuleNotices test

diff --git a/Modules/FindProtobuf.cmake b/Modules/FindProtobuf.cmake
index e20c448..88ef7cd 100644
--- a/Modules/FindProtobuf.cmake
+++ b/Modules/FindProtobuf.cmake
@@ -54,7 +54,7 @@
 
 #=
 # Copyright 2009 Kitware, Inc.
-# Copyright 2009,2011 Philip Lowman phi...@yhbt.com
+# Copyright 2009-2011 Philip Lowman phi...@yhbt.com
 # Copyright 2008 Esben Mose Hansen, Ange Optimization ApS
 #
 # Distributed under the OSI-approved BSD License (the License);

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=162f3fb413fc862c5c75a0402fdfbdc6dd19468b
commit 162f3fb413fc862c5c75a0402fdfbdc6dd19468b
Merge: ca000a0 8b17fd6
Author: Philip Lowman phi...@yhbt.com
AuthorDate: Wed May 25 22:10:19 2011 -0400
Commit: Philip Lowman phi...@yhbt.com
CommitDate: Wed May 25 22:10:19 2011 -0400

Merge branch 'master' of git://public.kitware.com/cmake into 
12128_FindProtobuf_module_behavior_under_Windows_is_annoying


---

Summary of changes:
 Modules/FindProtobuf.cmake |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


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