hello:
thanks all for the help--I really appreciate it. that cleaned up my file
quite a lot and was exactly what I was aiming for.
Thanks again,
On 2/5/2014 6:17 AM, Johannes Zarl wrote:
Hi,
On Tuesday, 4. February 2014, 23:41:55, Littlefield, Tyler wrote:
I've tried this a few diff
Hello all:
I've tried this a few different ways and ran into issues. If someone
wouldn't mind pointing out where I'm going wrong, I would appreciate it.
(for example if there's a better way to do what I'm trying).
Thanks,
cmake_minimum_required(VERSION 2.8)
project(BLOXWEB)
#include addition
Hello:
I am working on trying to figure out how to do release/debug
static/shared builds. If anyone could help with my setup I'd appreciate
it. Here is the CMakeLists.txt:
cmake_minimum_required(VERSION 2.8)
project(BLOXWEB)
#include additional modules
set(CMAKE_MODULE_PATH ${BLOXWEB_SOURCE_DI
On 9/10/2013 6:43 PM, Matthew Woehlke wrote:
On 2013-09-10 17:38, Littlefield, Tyler wrote:
First, I can create a demo directory and from there I can have a
cmakelists.txt per demo. Is there a way somehow to link to the generated
static library?
Sounds like you are looking for
ke the debug/release build work, as well
as to allow to let this install. I need to install libxlog.a and the
include directory
as well to includedir/xlog/*. Is there a typical method to do this?
Thanks,
On 9/10/2013 1:34 AM, Micha Hergarden wrote:
On 09/09/2013 10:07 PM, Littlefield, Tyler wr
Hello:
I had a quick question. Is there a sort of standard template to build a
library? I've been looking around and an mot really sure where to
go--most of the tutorials show only using one file.
I'd also like to know if there's a way to build demos and tests. I'm
thinking my setup will look s
st XML and upload it to the server. I'm sure there are a million
ways to do this with python, or you could use wget/curl.
tyler
On Tue, Oct 11, 2011 at 7:02 AM, Paul Anton Letnes
wrote:
> Hi!
>
> I am interested in using the CDash (e.g. my.cdash.org) infrastructure for
> running
Have you tried using ctest -VV or ctest --debug to find out what's really
going on?
tyler
On Mon, Oct 3, 2011 at 4:36 PM, Mike Owens wrote:
> **
> ctest_update(SOURCE "${CTEST_SOURCE_DIRECTORY}" RETURN_VALUE update_result)
> is producing this error.
>
> *Update
io noisier than it should be, I'd
love to hear about it.
Thanks,
tyler
###
### MINIMAL REPRO CASE
###
### CMakeLists.txt
cmake_minimum_required (VERSION 2.8)
project(test)
# Hardcode your own path to qmake or remove this and let FindQt4
discover it in your PATH or whatever.
set (QT_QMAK
one used by the overarching build system) and
the satellite CMakeCache (the one created and used by the
ExternalProject) are correctly pointing to the Visual Studio versions
of cl and link.
- This problem generally manifests as the first build of the day. Our
schedule of automated builds looks l
I believe you're way too late for 2.8.5, but there should be a call
for bugs for 2.8.6 coming along shortly after 2.8.5 is released.
tyler
On Tue, Jun 14, 2011 at 4:50 AM, Johannes Stallkamp
wrote:
> Hi,
>
> Would be great if
>
> http://www.cmake.org/Bug/view.php?id=12260
&g
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 wrote:
> Hi,
>
> With the FILE ( COPY .. DESTINATION) comm
he problem that you're seeing? Can you show us some output
from a build that demonstrates this problem?
The next step is to create a minimum case that reproduces the problem
you're seeing.
tyler
On Wed, May 18, 2011 at 2:27 AM, Andrea Galeazzi wrote:
> I've multiple execu
I think CMAKE_SHARED_LINKER_FLAGS is a cache variables, so you need to
use the CACHE flag (and probably the FORCE flag) to set(). You can
verify this by inspecting ${CMAKE_BINARY_DIR}/CMakeCache.txt. Consult
the docs for more details.
tyler
On Wed, May 18, 2011 at 6:32 AM, Gerhard Gappmeier
k itself in
${CMAKE_BINARY_DIR}. That target could have a post-build rule that
does the rename.
Maybe someone else has better ideas but that's the hack that springs to mind.
hth,
tyler
On Tue, May 17, 2011 at 11:18 AM, James Bigler wrote:
> CPack allows me to configure the basename of
On Fri, May 13, 2011 at 5:46 AM, gekso wrote:
> My problem is to change Intermediate directory and message
> (${CMAKE_CFG_INTDIR}) returns "$(Configuration)" to output..
$(Configuration) will be filled in at build time by the IDE with the
user-selected configurat
Please reply to the list so others can see the answer.
Thanks,
tyler
On Tue, May 10, 2011 at 8:19 AM, Anton Sibilev wrote:
> Already tried this, it works. But just for cmake I've found this - set
> (CMAKE_VERBOSE_MAKEFILE true)
>
> 2011/5/10 Tyler :
>> Your question is ha
Your question is hard to understand, but I think you want "make VERBOSE=1".
tyler
On Tue, May 10, 2011 at 5:16 AM, Anton Sibilev wrote:
> Hi All! Please, help me to find in cmake's structure full logs of
> compilation/linkage. I use "
rsions of VS and components I don't
use (MFC, ATL, etc.). Also, it seems that no one else has this
problem, so making the solution general for the community would not be
useful. Instead I hacked together the function below.
Thanks,
tyler
# This is a dumb version of the CMake module InstallR
I think the canonical way to do this is by handling this logic in a
wrapper script.
add_test -> wrapper script -> run test
-> check status and delete if OK
hth,
tyler
On Sat, May 7, 2011 at 3:13 PM, Belcourt, K. Noel wrote:
> Hi,
>
&
Try searching for "notes" on this page:
http://www.cmake.org/cmake/help/ctest-2-8-docs.html
On Mon, May 9, 2011 at 5:06 AM, NoRulez wrote:
> Hi,
>
> can anyone tell me how I can add CDash notes which i can fill up in a
> CTestScript file?
>
> The Problem is that i want to add the library version
Yes, I verified the manifests in each binary with strings + grep.
Everything is produced with a version of 9.0.21022.
tyler
On Tue, May 3, 2011 at 8:49 AM, John Drescher wrote:
> On Tue, May 3, 2011 at 11:43 AM, Tyler wrote:
>> My project makes use of the CMake/CPa
what else can I try?
Thanks,
tyler
___
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_F
It doesn't work if you just include your icon file as one of the
source files in the call to add_executable()/add_library()?
What do you mean by "cross building"? Do you mean cross-compiling? If
so, from what platform to win32?
tyler
On Tue, May 3, 2011 at 6:53 AM, Gabrie
Your syntax is wrong:
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:execute_process
execute_process (COMMAND ${command1} ...)
tyler
On Mon, May 2, 2011 at 11:50 AM, David Doria wrote:
> On Mon, May 2, 2011 at 2:27 PM, Tyler wrote:
>> You could use -D flags (cmake -D
You could use -D flags (cmake -Dvar=value -P script.cmake).
On Mon, May 2, 2011 at 11:07 AM, David Doria wrote:
> On Mon, May 2, 2011 at 1:57 PM, David Cole wrote:
>> script.cmake:
>> execute_process(x)
>> execute_process(y)
>>
>> CMakeLists.txt:
>> add_test(NAME MyTest COMMAND ${CMAKE_COMMAND}
I believe tests can have dependencies. Failing that, you can use the
COST property to control test execution order.
hth,
tyler
On Mon, May 2, 2011 at 10:18 AM, David Doria wrote:
> I am trying to run an executable that produces an output image, then
> compare this image to a baseline u
be a problem but
AFAIK you can't rely on the order to be correct because the OS will be
buffering the output anyway (unless you're handling that in some other
way). Maybe you could insert a timestamp at the beginning of each line
to facilitate sorting later? Just some ideas.
tyler
___
o this route, check the archives because of the whole
_INITIALIZED_TO_DEFAULT aspect of that particular cache variable.
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Pl
Eric, those all look good, but I'd like to particularly +1 this one:
http://public.kitware.com/Bug/view.php?id=8438
I've hacked around this deficiency in several places and I'm sure
other users have as well. It would be nice to replace these hacks with
a nice simple solution.
Th
I just use:
set (CPACK_GENERATOR "ZIP")
and that seems to work.
I think those CPACK_BINARY_* variables you're setting are only
meaningful in CPack's context, not in CMake's (i.e. those vars are
what CMake writes out in CPackConfig.cmake for Cpack's later use).
ht
mean.
hth,
tyler
On Thu, Mar 17, 2011 at 2:14 PM, Simon Drouin wrote:
> I'm trying to use CPack to create a .tar.gz package on linux. I use
> fixup_bundle from the bundle utility to copy and fix Qt libraries to the
> bundle.
>
> When I use simple 'make install
Enrique,
I think the -Werror flag is the problem:
http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
"-Werror
Make all warnings into errors."
hth,
tyler
On Mon, Mar 14, 2011 at 2:04 PM, Enrique Izaguirre
wrote:
> Hi Alex,
>
> This is the whole output from the m
The target in the Makefile is created with the add_custom_target()
call. So just change yours to:
add_custom_target(hello.bin ALL DEPENDS hello.bin)
hth,
tyler
On Fri, Mar 11, 2011 at 7:58 AM, Jim Newsome wrote:
> I'd like to do something like add_custom_command, with the output file
&
I believe the canonical answer is to write the command line you wish
to execute into a file and use install(SCRIPT ...) instead of
install(CODE ...).
tyler
On Fri, Mar 11, 2011 at 7:14 AM, Urbach, Marcel [Rohmann GmbH]
wrote:
> Hi,
>
> I am using Windows 7 and I have tried to re
would use execute_process() to run your python script at
configure time. It would deposit its results into a file, which you
could then include() (or file(READ ...)).
hth,
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
n you solve that one and I'll nominate you for some kind of prize in
software engineering :).
Anyway, as someone with an IT'ish background who does menial things like
configure CI servers, my advice probably isn't worth much to a real
developer like yourself. I'll go back to stu
m thinking we
> could define "backlog" as:
> status=acknowledged
>AND
> assigned to="" (empty string, none)
WORKSFORME[1].
Is there a way to display a note about this non-standard convention of
the CMake bug tracker on the bug tracker itself? I could see new us
w do I add several paths in
> link_directories under windows ?
Your approach is fine. I would inspect the value of LINK_LIBS that is
passed to target_link_libraries() to make sure it's what you expect it
to be.
> Do I need to add a ".lib" s
s in revision control, but
probably not really really secure either.
tyler
___
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 a
ld have to do a test like:
if (PLATFORM MATCHES opensuse9 AND
PRODUCT_NAME MATCHES addons)
set (do_not_run_tests TRUE)
endif ()
which is undesirable.
Any other ideas on how I can proceed here?
Thanks,
tyler
___
Powere
On Thu, Jan 27, 2011 at 08:40:14AM -0800, Tyler Roscoe wrote:
> On Thu, Jan 27, 2011 at 04:11:35AM -0800, girish hilage wrote:
> > find_program(CTEST_SVN_COMMAND NAMES svn)
> > set(CTEST_UPDATE_COMMAND "${CTEST_SVN_COMMAND}")
> > set(CTEST_UPDATE_
version handle the username/password; it will
cache them if ask it to. The advantage is that you don't have to
hardcode passwords into your build scripts. The disadvantage is this is
something you'll need to take care of for all machines/accounts that do
automated builds.
tyler
__
;HELLO!")
>
> message("outside func testo=${testo}")
function() creates a new scope, so you need PARENT_SCOPE on the set() in
set_a_var().
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitwar
e uses in production, my
guess to the origin of 10 hours is that this time period was useful for
Kitware's specific circumstances.
As to why "everyone" uses that number, I think your guess is exactly
right.
tyler
___
Powered by www.kitware.
(REGEX REPLACE) command.
Not that I'm signing up for this job, but +1 on this suggestion.
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-
On Mon, Jan 17, 2011 at 06:24:58PM +, mark...@email.it wrote:
>ln -s lib/libfreenect.so.0.0 lib/libfreenect.so
For this specific problem, check out:
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:SOVERSION
> Should I use: add_custom_command ?
For the general problem of
message ("INFO: Packaging disabled.")
endif ()
[Stanza about publishing, aka copying build artifacts to the
archive for later use, goes here using a similar pattern.]
...
hth,
tyler
___
Powered by www.kitware.com
/Testing/${xml_dir}")
The idea for this comes from Clinton Stimpson. See also:
http://permalink.gmane.org/gmane.comp.programming.tools.cmake.user/27268
hth,
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensou
binary directory
${CTEST_BINARY_DIRECTORY}. Writing new cache and starting fresh build.")
write_cache ()
endif ()
hth,
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/ope
r some reason.
If I needed it, wouldn't it be pretty obvious which directory to use?
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic an
- any help here, is this example maybe outdated or
> something else (am using CMake 2.8.3)?
It's impossible to say what's going wrong without details. What does the
output from fixup_bundle look like? How do you call fixup_bundle from
your CMakeLists?
tyler
_
t; finding it. I've tried specifying components as well and still nothing.
You can add some message() commands to FindHDF5.cmake to inspect things.
You could also try cmake --trace to get debug output (note: the output
is extremely verbose).
tyler
_
pend on the FFTW
> external project. If I do a sequential build, FFTW does get built
> before everything else, but if I do a parallel build, FFTW builds
> concurrent with the rest of ITK. This could definitely fail.
If you're using FFTW as an external project, can't y
ake:36 (FILE):
> file INSTALL cannot find "/root/massmailer/massmailer/massmailer".
> Call Stack (most recent call first):
> cmake_install.cmake:37 (INCLUDE)
We'll need to see your CMakeLists.txt to help further, but it's
e the bug I reported is a regression, so maybe it
can get through the gate regardless.
Thanks,
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-
So are you ready to start collecting candidate bugs for 2.8.4? I
nominate this one!
http://www.vtk.org/Bug/view.php?id=11561
Thanks,
tyler
On Thu, Dec 09, 2010 at 03:37:16PM -0500, David Cole wrote:
> We are still planning to start the release candidate cycle for CMake
> 2.8.4 on Wed. J
/INCREMENTAL because
Bullseye doesn't get along with it. We experienced LNK1000 errors with
this combination.
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please kee
-bit Windows.
if (TP_PLATFORM MATCHES "${TP_WIN32}")
string (REPLACE "/ZI" "/Zi" CMAKE_CXX_FLAGS_DEBUG
${CMAKE_CXX_FLAGS_DEBUG})
endif ()
# Disable this warning:
# warning LNK4098: defaultlib 'MSVCRT' conflicts with use of othe
Ok I've added a link to this thread and the patch below to the bug:
http://www.vtk.org/Bug/view.php?id=11561
Without feedback from anyone, I will assume that I have done an awesome,
production-ready job and will await the call for patches to add to CMake
2.8.4.
Thanks,
tyler
On Tue, D
test should run second in a fresh
# binary directory. Otherwise, since it failed previously, it should run first.
add_test (i_should_fail_and_run_second_or_first ${CMAKE_COMMAND} -E echo i
should fail and run second)
set_tests_properties (i_should_fail_and_run_second_or_first PROPERTI
E_CTEST_COMMAND} with your preferred arguments.
hth,
tyler
___
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://ww
the problem at its source would
obviously be preferable for me.
Thanks,
tyler
On Tue, Nov 30, 2010 at 12:14:56PM -0800, Tyler Roscoe wrote:
> On Tue, Nov 30, 2010 at 01:29:37PM -0500, Zach Mullen wrote:
> > Hm, yours was a use case we didn't really consider when we were making
tly
build that fixes this bug/regression/misunderstanding.
Thanks,
tyler
> On Tue, Nov 30, 2010 at 12:43 PM, Tyler Roscoe wrote:
>
> > On Fri, Nov 26, 2010 at 10:38:44AM -0500, Zach Mullen wrote:
> > > I just realized why this isn't working -- it's actually not a reg
On Thu, Nov 25, 2010 at 02:01:31PM +0100, Marcel Loose wrote:
> >>> On 24-11-2010 at 17:45, in message
> <20101124164507.gg23...@cryptio.net>, Tyler
> Roscoe wrote:
> > On Wed, Nov 24, 2010 at 12:11:56PM +0100, Micha Renner wrote:
> >>
> >> &g
le ground about the future of the COST
property. In its current state, it is of no use to me.
Thanks,
tyler
> On Fri, Nov 26, 2010 at 10:20 AM, Zach Mullen wrote:
> > On Tue, Nov 23, 2010 at 6:02 PM, David Cole wrote:
> >
> >> It might be due t
information in the documentation would be good, I agree.
> (Although quite time consuming and costly for somebody...)
Perhaps a good compromise is simply to add version information to all
new CMake commands/variables/properties that are added hence
n.
>
> No, as I mentioned, there was an article of one the CMake-maintainers
> who recommended this.
Micha is correct. CMAKE_INSTALL_PREFIX is set before your CMakeLists.txt
is processed, so the above will never do anything.
tyler
___
Powered by w
t;TP_EXERCISER_FAIL")
and the FAIL_REGULAR_EXPRESSION property seems to be working just fine.
I've included a small repro case below. This looks like a regression. Should I
open a bug?
Thanks,
tyler
[tyle...@tpb006:~/cmake-test-properties-test]$ cat CMakeLists.txt
cmake_minimum_required(VERSION 2.
gt; endforeach()
Try install(FILES ...) instead. TARGETS is for installing CMake targets.
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topi
On Tue, Nov 16, 2010 at 10:15:28PM -0500, David Doria wrote:
> Is the goal simply to copy
> ...VTK/bin/libvtkHybrid.a
> into the package?
>
> I tried this:
> INSTALL(CODE "\${VTK_DIR}/bin/libvtkHybrid.a")
More like:
INSTALL(FILES "${VTK
r their packages to build correctly?
tyler
___
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.or
n A?
Besides, doesn't -k satisfy your use case while removing the confusing
and erroneous report of success caused by using -i?
Thanks,
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensourc
ks out of the box on many Linuxes/Unices.
tyler
___
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
On Tue, Oct 19, 2010 at 12:05:21PM -0700, J Decker wrote:
> WIthout adding a bunch of custom addtions, is there something I can
> test to see if a target is already defined?
Did you try 'if (TARGET ...)'?
tyler
___
Powered by www.ki
his without patching CMake.
What we do instead is just create our own equivalent of the RUN_TESTS
target:
set (cmd ${CMAKE_CTEST_COMMAND} -VV)
if (MSVC)
set (cmd ${cmd} -C ${CMAKE_CFG_INTDIR})
else ()
set (cmd ${cmd} -C ${CMAKE_BUILD_TYPE})
end
make (empty because not defined in cmake - logical)
>
> - add_test( mpirun -machinefile $ENV{TMPDIR} myexec ) => expands at
> configuration time with cmake but TMPDIR is not yet defined on the
> master node (logical)
How about add_test (... \$TMPDIR ... )
?
tyler
_
(since the cmake
> itself runs in 32bit environment).
> But I'm interested in 64bit cmd.exe.
> Is there a way to invoke it from cmake?
Where is ${SHELL} defined? What is its value?
I suspect you could use find_program() with appropriate arguments to
s
-S script.cmake -VV > build.log
2>&1".
tyler
___
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://w
NARY_DIRECTORY and CTEST_COMMAND are not
ctest -S scripts are mostly intended (afaik) for running dashboard
scripts where those variables are required.
How about using cmake -P script.cmake instead?
tyler
___
Powered by www.kitware.com
Visit other K
t always produce the most helpful error
messages (submit to a dashboard that's not there and nothing in the
chain complains! your build just never arrives anywhere). However,
there's not a lot of detail here.
Does your Build.xml look correct? Are there any relevant messages
I am using Ctest to do testing and coverage for my code. The directory is
set up like so:
SourceDir/
subdir1/
foo.cpp
foo.gcda
foo.gcno
foo.h
subsub/
foo2.cpp
foo2.gcda
foo2.gcno
subdir2/
bar
;t built that library yet.
Instead, you should check for the existence of the CMake target that
will cause the library to be built at compile time. You can do this with
if (TARGET ).
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source
On Thu, Jul 22, 2010 at 04:57:50PM +0200, Olaf van der Spek wrote:
> Why aren't empty dirs excluded by default?
Because if they were excluded, we would have someone on the list next
month asking why she can't create empty directories with install()
com
art of the
"extensiveTest" set?), you could train your developers how to use CTest
directly. You could also add a custom_target that runs something like
"${CMAKE_CTEST_COMMAND} -R extensive", which gives you the build target
you're looking for.
tyler
___
On Fri, Jul 09, 2010 at 06:39:57PM +0200, Bo Thorsen wrote:
> Does this also work with binary files? From the documentation on FILE,
> this isn't really clear to me.
Why don't you try it and let us know?
tyler
___
Powered by www.ki
y, we use a custom command to call a python script at build
time. The script writes out the header with the up-to-date version info.
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/ope
ducating it out of them, but if both win32 and win64
configurations could be made available through a robust configure-time
process, that might be better.
Thanks,
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http
If possible, I would be interested in seeing/using this script.
Thanksm,
tyler
___
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
n or must one
> generate separate 32-bit and 64-bit solutions/projects in different
> directories?
This is not currently possible. Here's a thread where this was discussed
previously:
http://www.cmake.org/pipermail/cmake/2009-June/029897.html
tyler
___
Marcel,
Maybe I missed it earlier ITT, but I don't understand why you can't just
use if(FOO) instead?
tyler
On Thu, Jul 01, 2010 at 11:53:33AM +0200, Marcel Loose wrote:
> Hi Fraser,
>
> It doesn't. Well, partly it does, but unfortunately setting FOO to an
> e
;s the easiest way I can set CTEST_BUILD_NAME?
> Simply setting that variable in my CMakeLists.txt file doesn't *seem*
> to be effective.
Based on my build system, it looks like you can just set BUILDNAME
before you do include(CTest). You may need an enable_testing() call as
well.
tyler
n't make sense because mymacro is available at configure time
but your custom command will run at build time.
One way to do what you want is to put the definition and call of
mymacro() in a script, then run that script at build time with "COMMAND
${CMAKE_COMMAND} -P mymacro.cmake".
t
On Tue, Jun 22, 2010 at 08:30:43PM -0700, ben scott wrote:
> I know about the variable to add custom flags for g++, but how do I get rid
> if
> unwanted flags? I am writing a program for KDE on Linux and cmake insists on
Something like:
string(REPLACE "-ansi" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FL
On Fri, Jun 18, 2010 at 01:06:46PM -0400, David Cole wrote:
> On Fri, Jun 18, 2010 at 1:01 PM, Tyler Roscoe wrote:
> > On Fri, Jun 18, 2010 at 06:30:25PM +0200, Eric Noulard wrote:
> > > 2010/6/18 Tyler Roscoe :
> > > > 1. I want to change where "mak
oked at the install() command?
tyler
___
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/CMa
On Fri, Jun 18, 2010 at 06:30:25PM +0200, Eric Noulard wrote:
> 2010/6/18 Tyler Roscoe :
> > 1. I want to change where "make package" deposits the packages it
> > creates. Is there a way to do this -- some cpack variable I haven't
> > found?
>
> No
do I
calculate "some_extension"? Is there some mapping between package type
(TGZ, ZIP, NSIS) and the extension it ends up with (.tar.gz, .zip,
.exe)?
Thanks,
tyler
___
Powered by www.kitware.com
Visit other Kitware open-source projects a
le.
> >
> > Also consider to use properties for such a purpose.
>
> Which property do you actually think about?
You can set arbitrary properties (MY_MAGIC_PROPERTY) and query them
later. I think this is what Michael meant.
tyler
___
P
But you might ship Inner without Outer, right? Or use Inner in a third
project, OffToTheSide? These relationships are easier to model and less
messy if Inner doesn't live inside Outer.
Anyway, just something to consider.
tyler
___
Powered by www.k
1 - 100 of 548 matches
Mail list logo