Hi,
is it possibleto list thesubdirectoriesfrom agiven folder?
I usethis functionbut itreturnsmethefilein thecurrent path.
macro(list_subdirectories retval curdir return_relative)
file(GLOB sub-dir RELATIVE ${curdir} *)
set(list_of_dirs "")
foreach(dir ${sub-dir})
if(IS_DIRECTORY ${cu
On 07/21/2011 07:07 AM, Jookia wrote:
> Running the follow file causes problems:
>
> if(NOT "${CMAKE_BINARY_DIR}" MATCHES "${CMAKE_SOURCE_DIR}")
> endif()
MATCHES matches the LHS string against the regex on the RHS. Probably
you wanted to use STREQUAL instead.
Michael
___
On Wed, Jul 20, 2011 at 4:52 PM, Eric Noulard wrote:
> 2011/7/20 Daniel Näslund :
>> set(QT_HEADERS_DIR /opt/env/lenny-ppc/usr/lib)
>> set(QT_LIBRARY_DIR /opt/env/lenny-ppc/usr/include/qt4)
>
> May those two should be reversed ? HEADER seems to point to lib and
> LIBRARY to include?
Oups.
Running the follow file causes problems:
if(NOT "${CMAKE_BINARY_DIR}" MATCHES "${CMAKE_SOURCE_DIR}")
endif()
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please k
On Wednesday 20 July 2011, Jean-Christophe Fillion-Robin wrote:
> Hi Marcel,
>
> Before CMAKE_PARSE_ARGUMENT [1] was integrated (11 months ago by Alex
> Neundorf), within CTK, we created a macro named ctkMacroParseArgument based
> on [2].
Yes, so it is in cmake since 2.8.3.
Alex
On Wednesday 20 July 2011, Florian Reinhard wrote:
> Hi,
>
> in 2.8.4 i added these lines to my project and had .asm files compiled
> correctly:
>
> ...set C/CXX compiler and how they are called...
> ENABLE_LANGUAGE(ASM)
> SET (CMAKE_ASM_COMPILE_OBJECT " -fr=
> -eo=.asm.obj ")
>
> PROJECT (myp
When I choose Visual Studio 9 (MSVC 2008) as generator, switching on
CMAKE_VERBOSE_MAKEFILE causes an extra line in the generated vcproj file,
saying:
SuppressStartupBanner="FALSE"
However, when I choose Visual Studio 10 (MSVC 2010), switching on
CMAKE_VERBOSE_MAKEFILE does not seem to have
Hi Marcel,
Before CMAKE_PARSE_ARGUMENT [1] was integrated (11 months ago by Alex
Neundorf), within CTK, we created a macro named ctkMacroParseArgument based
on [2].
We will need to re-evaluate which minimum version of CMake we want to depend
on and if possible, use the one provided by CMake.
If
Hi all,
As a spin-off of my question earlier today on INSTALL(CODE...) --
http://www.mail-archive.com/cmake@cmake.org/msg37292.html --
I followed the link
https://github.com/commontk/CTK/blob/master/CMake/ctkMacroCompilePythonScript.cmake
that was supplied in the first reply and finally arrived at
Thanks David,
I never realized you can use just about any CMake-construct inside
CODE...
Regards,
Marcel Loose.
On Wed, 2011-07-20 at 10:41 -0400, David Cole wrote:
> To produce an error from an install(CODE snippet, simply add:
>
>
> if(error)
> message(FATAL_ERROR \"error message here
2011/7/20 Daniel Näslund :
>
>> Then, if you need to help it some more, you may set the path to the QtCore
>> library manually, or other variables manually.
>
> Managed to compile and link when I added the following snippet to the
> toolchain file:
>
> set(QT_HEADERS_DIR /opt/env/lenny-ppc/usr/l
-- Forwarded message --
From: Daniel Näslund
Date: Wed, Jul 20, 2011 at 4:41 PM
Subject: Re: [CMake] How pass a -spec parameter to FindQt4.cmake?
To: "clin...@elemtech.com"
Hi Clint and thanks for your advices (sorry about the delayed answer),
On Tue, Jul 19, 2011 at 1:33 AM, c
To produce an error from an install(CODE snippet, simply add:
if(error)
message(FATAL_ERROR \"error message here\")
endif()
inside the CODE based on some other "error" flag also in your CODE...
On Wed, Jul 20, 2011 at 7:45 AM, Marcel Loose wrote:
> Hi Jc,
>
> Thanks for the tip. It ma
On Mon, Jul 18, 2011 at 8:42 AM, Valentin-Daniel Boca
wrote:
> gen_code xxx.idl -> xxxIdl.h, xxxIdl.cc, xWrappers.h and xxxWData.h
>
> So for every "keyword struct" there is one more file generated. The first
> three files are always the same.
>
> Given this, I can't know the list of output files
Hi Michael,
Thank you for that long and well explained resonse!
I just gave your EXTERNAL_OBJECT approach with a patched cmake version a try.
Unfortunately this is just almost a solution. That way the linker.cmd
appears in the list of files that are fed to the linker, but it
doesn't keep the sam
Hi,
in 2.8.4 i added these lines to my project and had .asm files compiled
correctly:
...set C/CXX compiler and how they are called...
ENABLE_LANGUAGE(ASM)
SET (CMAKE_ASM_COMPILE_OBJECT " -fr=
-eo=.asm.obj ")
PROJECT (myproject)
...add soruces, libraries and executables etc...
with 2.8.5 i g
On 7/20/2011 2:18 AM, Jookia wrote:
Greetings from the world of CMake problems,
I've been using CMake for a while (love it!) but a while back I sent my
project off to a person and he tried to generate the CMake project, but
it failed. Why? Because he for some reason keeps all his data in /s . So
Hi Jc,
Thanks for the tip. It makes sense to let the build fail early (i.e.
during compilation, instead of installation). I'll take it into
consideration.
Regards,
Marcel Loose.
On Wed, 2011-07-20 at 06:41 -0400, Jean-Christophe Fillion-Robin wrote:
> Hi Marcel,
>
> Aware I won't be answering y
Hi Marcel,
Aware I won't be answering your question regarding the exit code associated
with INSTALL(CODE ...), I still would like to suggest you an approach that
could help you addressing your issue.
What about byte-compiling the python source at build time ? In that case,
the build step would fa
2011/7/20 Lecourt Maxime :
> Changing to another directory without special characters ( ) solved the
> problem for me.
Thank you, overriding the default install prefix for cmake fixed this
for me too. Maybe this should be added to the Readme.txt as long as
there is no fix for it?
I just wonder wh
I have been using CMake and MinGW and I had problems when using the
"Program Files (x86)" directory.
Changing to another directory without special characters ( ) solved the
problem for me.
Regards,
Maxime
Le 20/07/2011 11:31, Florian Reinhard a écrit :
Hi!
I just compiled cmake on windows7
Hi!
I just compiled cmake on windows7 x64 with MinGW but the make install fails:
-- Installing: C:/Program Files
(x86)/CMake/share/cmake-2.8/Modules/SquishRunTestCase.bat
CMake Error at cmake_install.cmake:35 (FILE):
file INSTALL cannot copy file
"C:/source/cmake-2.8.5/Modules/SquishRunTestCa
Hi all,
I have a macro that, during install, compiles python source files to
byte code. Sometimes, there's a syntax error in the python source that
can be caught during compilation; i.e. during the execution of
INSTALL(CODE ...).
Is is possible to somehow fetch the exit status of commands execute
23 matches
Mail list logo