Hello,
How to disable the new warnings CMake 2.8.4-rc2 emits, such as the
following ones?
CMake Warning: The variable, 'NAMEFUNC', specified manually, was not
used during the generation.
CMake Warning: The variable, 'SAJOBS', specified manually, was not
used during the generation.
CMake Warning:
Am Mittwoch, den 02.02.2011, 12:00 +0100 schrieb Emmanuel Blot:
Hello,
How to disable the new warnings CMake 2.8.4-rc2 emits, such as the
following ones?
I support this question too.
There should be a way to switch off this feature of CMake, especially
when variables are used uninitialized.
CMake 2.8.3:
When I install with mingw32-make install/strip
the installed files are stripped.
But when I set CPACK_STRIP_FILES to 1 and
use NSIS with mingw32-make package the binaries
are not stripped.
CPackConfig.cmake looks correct:
SET(CPACK_BINARY_NSIS ON)
...
SET(CPACK_CMAKE_GENERATOR
2011/2/2 Peter Kümmel syntheti...@gmx.net:
CMake 2.8.3:
When I install with mingw32-make install/strip
the installed files are stripped.
But when I set CPACK_STRIP_FILES to 1 and
use NSIS with mingw32-make package the binaries
are not stripped.
CPackConfig.cmake looks correct:
Hello!
I am trying to generate version.h in my project as described
http://addisu.taddese.com/blog/inserting-svn-revision-number-in-your-cc-code/
I think the most natural place to do it is my project root CMakeLists.txt.
The problem is it does not contain any target - just setting some
On 01/31/2011 05:26 PM, kent williams wrote:
I found this out on a RHEL6 machine, which comes stock with tclsh and
wish but without the C header files for development.
FindTCL.cmake sets TCL_FOUND, even though
TCL_INCLUDE_PATH:PATH=TCL_INCLUDE_PATH-NOTFOUND
Imagine the hilarity that
You'll want to add a custom command/target - you might consider taking
a peek at this module, which does effectively that for Git.
https://github.com/rpavlik/cmake-modules/blob/master/GetGitRevisionDescription.cmake
Ryan
On Wed, Feb 2, 2011 at 6:44 AM, Ilja Golshtein ilej...@narod.ru wrote:
On 02/02/2011 01:44 PM, Ilja Golshtein wrote:
Hello!
I am trying to generate version.h in my project as described
http://addisu.taddese.com/blog/inserting-svn-revision-number-in-your-cc-code/
I think the most natural place to do it is my project root CMakeLists.txt.
The problem is it
Hi,
There are a few places where I want to put the current date in
generated files. There is a 'date' command in Windows, in OSX and in
Linux. However, all three commands take different parameters to format
the output, so they cannot be uses in a portable manner. What I would
like to use is
Michael,
the problematic step is ADD_DEPENDENCIES.
I don't have any suitable target.
The referred CMakeLists.txt has main/main.c. Unfortunately mine does not - just
add_subdirectory.
I do believe there is a pattern to overcome such issue without nasty hacks.
Many thanks.
--
Best regards,
On 02/02/2011 02:27 PM, Ilja Golshtein wrote:
Michael,
the problematic step is ADD_DEPENDENCIES.
I don't have any suitable target.
The referred CMakeLists.txt has main/main.c. Unfortunately mine does not -
just add_subdirectory.
But in the subdirectory, there's a target, isn't it? So,
On 02.02.2011 13:43, Eric Noulard wrote:
2011/2/2 Peter Kümmelsyntheti...@gmx.net:
CMake 2.8.3:
When I install with mingw32-make install/strip
the installed files are stripped.
But when I set CPACK_STRIP_FILES to 1 and
use NSIS with mingw32-make package the binaries
are not stripped.
Hi all,
I'm wondering, if I understood correctly the behaviour of CMake, whether
there'a a way to prevent CMake from deleting duplicated libraries in a
target_link_libraries list.
I have an executable which links against (all static) libraries A, B and
C. A itself links against C,D,E... and
On 2/2/2011 6:10 AM, Micha Renner wrote:
Am Mittwoch, den 02.02.2011, 12:00 +0100 schrieb Emmanuel Blot:
Hello,
How to disable the new warnings CMake 2.8.4-rc2 emits, such as the
following ones?
I support this question too.
There should be a way to switch off this feature of CMake,
02.02.2011, 16:42, Michael Hertling mhertl...@online.de:
On 02/02/2011 02:27 PM, Ilja Golshtein wrote:
the problematic step is ADD_DEPENDENCIES.
I don't have any suitable target.
The referred CMakeLists.txt has main/main.c. Unfortunately mine does not -
just add_subdirectory.
But in
On 2/2/2011 6:10 AM, Micha Renner wrote:
Am Mittwoch, den 02.02.2011, 12:00 +0100 schrieb Emmanuel Blot:
Hello,
How to disable the new warnings CMake 2.8.4-rc2 emits, such as the
following ones?
I support this question too.
There should be a way to switch off this feature of CMake,
2011/2/2 Peter Kümmel syntheti...@gmx.net:
On 02.02.2011 13:43, Eric Noulard wrote:
2011/2/2 Peter Kümmelsyntheti...@gmx.net:
CMake 2.8.3:
When I install with mingw32-make install/strip
the installed files are stripped.
But when I set CPACK_STRIP_FILES to 1 and
use NSIS with
On Feb 2, 2011, at 9:12 AM, Bill Hoffman wrote:
On 2/2/2011 6:10 AM, Micha Renner wrote:
Am Mittwoch, den 02.02.2011, 12:00 +0100 schrieb Emmanuel Blot:
Hello,
How to disable the new warnings CMake 2.8.4-rc2 emits, such as the
following ones?
I support this question too.
There
Is there any way to customize the Makefile output from CMake to
include user-defined lines (say, something like #include
Makefile.inc) at the end of each Make file?
Cheers,
CY
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
On 02/02/2011 03:11 PM, Ilja Golshtein wrote:
02.02.2011, 16:42, Michael Hertling mhertl...@online.de:
On 02/02/2011 02:27 PM, Ilja Golshtein wrote:
the problematic step is ADD_DEPENDENCIES.
I don't have any suitable target.
The referred CMakeLists.txt has main/main.c. Unfortunately
On 2/2/2011 9:21 AM, Michael Jackson wrote:
On Feb 2, 2011, at 9:08 AM, Brad King wrote:
cmake --help:
--warn-uninitialized= Warn about uninitialized values.
--warn-unused-vars = Warn about unused variables.
--no-warn-unused-cli= Don't warn about command line
02.02.2011, 17:37, Michael Hertling mhertl...@online.de:
Obviously I can choose arbitrary executable and link my target to it.
Preferably, choose the targets which need the version.h header.
All executables (well ... but some tests) require version.h
Looks like the cleanest approach is to
I wanna build several targets in one CMakeLists.txt,
because I have many simple one-file-only plugins with
the same build rules, for instance:
include_directories(a)
add_library(a MODULE a/a.cpp)
include_directories(b)
add_library(b MODULE b/b.cpp)
The problem is that all include_directories
On 02/02/2011 03:04 PM, Marco wrote:
Hi all,
I'm wondering, if I understood correctly the behaviour of CMake, whether
there'a a way to prevent CMake from deleting duplicated libraries in a
target_link_libraries list.
I have an executable which links against (all static) libraries A, B
Am Mittwoch, den 02.02.2011, 09:49 -0500 schrieb Brad King:
On 2/2/2011 9:21 AM, Michael Jackson wrote:
On Feb 2, 2011, at 9:08 AM, Brad King wrote:
cmake --help:
--warn-uninitialized= Warn about uninitialized values.
--warn-unused-vars = Warn about unused
On 02/02/2011 04:08 PM, Peter Kümmel wrote:
I wanna build several targets in one CMakeLists.txt,
because I have many simple one-file-only plugins with
the same build rules, for instance:
include_directories(a)
add_library(a MODULE a/a.cpp)
include_directories(b)
add_library(b MODULE
On 02.02.2011 16:17, Michael Wild wrote:
namespace(a)
include_directories(a)
add_library(a MODULE a/a.cpp)
endnamespace()
Put a CMakeLists.txt file in a/ and b/ and do the include_directories()
Exactly this is what I don't wanna do and why I've asked ;)
Seems it becomes a feature
2011/2/2 Michael Wild them...@gmail.com:
Put a CMakeLists.txt file in a/ and b/ and do the include_directories()
and add_library() calls in there. That's the only way to have separate
include directories since there is no corresponding target property
(which admittedly would be nice to have).
On 2/2/2011 9:59 AM, Micha Renner wrote:
Am Mittwoch, den 02.02.2011, 09:12 -0500 schrieb Bill Hoffman:
On 2/2/2011 6:10 AM, Micha Renner wrote:
Am Mittwoch, den 02.02.2011, 12:00 +0100 schrieb Emmanuel Blot:
Hello,
How to disable the new warnings CMake 2.8.4-rc2 emits, such as the
following
On 2/2/2011 9:21 AM, Michael Jackson wrote:
On Feb 2, 2011, at 9:08 AM, Brad King wrote:
cmake --help:
--warn-uninitialized= Warn about uninitialized values.
--warn-unused-vars = Warn about unused variables.
--no-warn-unused-cli= Don't warn about command
On 02/02/2011 04:21 PM, Peter Kümmel wrote:
On 02.02.2011 16:17, Michael Wild wrote:
namespace(a)
include_directories(a)
add_library(a MODULE a/a.cpp)
endnamespace()
Put a CMakeLists.txt file in a/ and b/ and do the include_directories()
Exactly this is what I don't wanna do
On 2/2/2011 11:14 AM, Emmanuel Blot wrote:
Currently, there is no way to turn this off.
Very, very bad news ;-(
IMHO, this is a recurrent issue with CMake. It seems the
I was wrong. Please read Brad King's posts on this, and then see if it
answers your questions.
-Bill
2011/2/2 Emmanuel Blot eblot...@gmail.com:
Currently, there is no way to turn this off.
Very, very bad news ;-(
IMHO, this is a recurrent issue with CMake. It seems there is no way
to guarantee that a project that builds well with a version of CMake
will build the same way with the next
On Wed, Feb 2, 2011 at 11:46 AM, Eric Noulard eric.noul...@gmail.com wrote:
2011/2/2 Bill Hoffman bill.hoff...@kitware.com:
On 2/2/2011 11:14 AM, Emmanuel Blot wrote:
Currently, there is no way to turn this off.
Very, very bad news ;-(
IMHO, this is a recurrent issue with CMake. It seems
Hi Michael,
here's the plain example. I have a package with its CMakeLists.txt file
like this:
#
# Generate library
#
add_library(TrkBase ${Sources})
target_link_libraries(TrkBase ${LIB_LINK_LIST})
#
# Generate executable
#
add_executable(TrkExchangeDataTest bins/TrkExchangeDataTest.cc)
On Wednesday 02 February 2011, Eric Noulard wrote:
2011/2/2 Emmanuel Blot eblot...@gmail.com:
Currently, there is no way to turn this off.
Very, very bad news ;-(
IMHO, this is a recurrent issue with CMake. It seems there is no way
to guarantee that a project that builds well with a
On Wednesday 02 February 2011, Marco wrote:
Hi Michael,
here's the plain example. I have a package with its CMakeLists.txt file
like this:
Which version of cmake are you using ?
There is logic in cmake which analyzes the dependencies, and usually the
library list as given by the user should
On 02.02.2011 20:18, Enrique Izaguirre wrote:
Hello,
I have tried several ways to link an Api library to my project, but
everything I've done so far is unsuccessful.
I have a .lib file named AdbWinApi.lib in the address
${myProject_SOURCE_DIR}/android/development/windows/usb/api
I am trying
On 02.02.11 13:18:49, Enrique Izaguirre wrote:
Hello,
I have tried several ways to link an Api library to my project, but
everything I've done so far is unsuccessful.
I have a .lib file named AdbWinApi.lib in the address
${myProject_SOURCE_DIR}/android/development/windows/usb/api
I am
cmake config build ctest/cdash work.
* but cpack broken.
env: win 7 x64, cygwin, cmake 2.8.1, for unix makefiles console project...
when type make package or cpack
get this error messages:
$ cpack --verbose
CPack: Enable Verbse
CPack Verbose: Read CPack config file:
CPack Verbose: Read
Hello,
Is it possible to create an executable in your top directory if you don't
have there any program? I mean, if all your programs .c and .cpp are in
subdirectories contained in your top directory, each one with its own
CMakeLists.txt.
I have three subdirectories, and all my programs are in
Changing from Win XP to Win 7 means you have to get used to a more
secure permissions model among other things.
Do you have the problem if you run this in a run as administrator scenario?
For the access is denied problem: do you have full permissions to
the directory in question? If you go to
On 02/02/2011 03:34 PM, Clifford Yapp wrote:
Is there any way to customize the Makefile output from CMake to
include user-defined lines (say, something like #include
Makefile.inc) at the end of each Make file?
With GNU Make, you might do the following:
CMAKE_MINIMUM_REQUIRED(VERSION 2.8
Forgot the list initially
-- Forwarded message --
From: Eric Noulard eric.noul...@gmail.com
Date: 2011/2/2
Subject: Re: [CMake] Executable in the main directory
To: Enrique Izaguirre enrique.izagui...@gmail.com
2011/2/2 Enrique Izaguirre enrique.izagui...@gmail.com:
Hello,
Thanks a lot Eric
Actually I am trying to move a project already done to CMake, and it doesn't
have any executable in the top directory, it is now done in Windows under
Visual Studio.
In the top directory I have a CMakeLists,txt that calls each one of the
subdirectories in which I have also
You can specify partial paths in CMakeLists files - that is, if you
want an executable target created in the main directory, but the files
are in the src directory, you can do something like
add_executable(mytarget src/main.cpp)
It sounds like you might have a situation where you have multiple
Hi Daniel, you can use something like the macro in the attached file, adapting
it to fit
your needs. It is not the same as a cmake -E date command, but it is useful.
Bye
Droscy
# - Get the current date from the system
# This file defines the macro TODAY that can be used to
# retrive the
On 02.02.2011 17:18, Michael Hertling wrote:
On 02/02/2011 04:21 PM, Peter Kümmel wrote:
On 02.02.2011 16:17, Michael Wild wrote:
namespace(a)
include_directories(a)
add_library(a MODULE a/a.cpp)
endnamespace()
Put a CMakeLists.txt file in a/ and b/ and do the
On Feb 2, 2011, at 6:38 PM, Peter Kümmel wrote:
On 02.02.2011 16:39, Michael Jackson wrote:
On Feb 2, 2011, at 10:21 AM, Peter Kümmel wrote:
On 02.02.2011 16:17, Michael Wild wrote:
namespace(a)
include_directories(a)
add_library(a MODULE a/a.cpp)
endnamespace()
Put a
Hi All
In my code I use an available libraries (amd btf colamd)
In order to compile those using cmake I use add_custom_command() to cd into
each folder and then run make for each library.
Now each library will have a lib file compiled, for example Lib/libamd.a
Now, I want to take all the
Hi All
In my code I use an available libraries (amd btf colamd)
In order to compile those using cmake I use add_custom_command() to cd into
each folder and then run make for each library.
Now each library will have a lib file compiled, for example Lib/libamd.a
Now, I want to take all the
2011/2/3 mina adel elecengineer_m...@yahoo.com:
Hi All
In my code I use an available libraries (amd btf colamd)
In order to compile those using cmake I use add_custom_command() to cd
into each folder and then run make for each library.
You should have a look at:
ExternalProject_Add from
52 matches
Mail list logo