Mike Melanson wrote:
Brad King wrote:
This is not really a problem that a build system can solve directly.
The native build tools need to be configured to support it. In order to
link statically to the C++ runtime but dynamically to the C runtime and
other libraries you need to configure
Mike Melanson wrote:
Brad King wrote:
You can link the entire program statically if you don't have any of your
own shared libraries. Then running ldd myexe will produce a message
that the executable is not dynamically linked. This requires just
adding -static to CMAKE_EXE_LINKER_FLAGS
Richard Fuchs wrote:
I've added some logging around each of our libraries that we build, but
I'm getting an unexpected result. I'm using a custom command with the
cmake -E echo to print a log out before and after a library is built.
However, the results are not consistent. When we have
Richard Fuchs wrote:
Ah, I see the note now. It's not in the section of the cmake book that
describes the command, but it's in the command index in the back and on
the web.
So why does it work with the add_custom_target?
It doesn't AFAIK. The custom rule specified by the custom target is
Enrico Scholz wrote:
does there exist a way to rename a target 'exe-foo' so that it is
installed as 'bin/foo' finally?
You can do this at build time before installing. See OUTPUT_NAME in
SET_TARGET_PROPERTIES.
-Brad
___
CMake mailing list
Brandon J. Van Every wrote:
I think the result is, quotes and backslashes cannot be reliably escaped
with respect to macro wrappers for ADD_CUSTOM_TARGET. Thus it is not
possible to write a macro that will TRY_COMPILE an arbitrary COMMAND.
So the feature that I would like, is a TRY_COMMAND
Alan W. Irwin wrote:
Today I inadvertently formed an unwanted circular chain of library
dependencies with the target_link_libraries command, and as a result CMake
segfaulted.
[snip]
[EMAIL PROTECTED] cmake ../test_cmake
-- Check for working C compiler: gcc
-- Check for working C compiler:
Arjen Markus wrote:
I am running into very similar problems with the Compaq Visual Fortran
compiler on Windows:
When CMake tests if this is an acceptable compiler, the
generated makefile contains partly Windows-style paths (c:\...) and
partly UNIX-style (c:/).
Are you saying that
Jacob Foshee wrote:
Howdy,
I'm helping out with the CMake build for OpenSceneGraph. OSG follows
the standard practice of using extensionless headers for common
interfaces. We would like all headers to show up in the project files
(e.g. vcproj). For the SOURCE_GROUP command to work, the
Tristan Carel wrote:
Enscript highlightning system does not support CMake source files in
the last version and Google told me anyone has written the required
file `cmake.st'.
So I made a very naive one
Cool!
Maybe this could be added to the CMake wiki.
You're welcome to create a Wiki
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
Hi,
I am trying to create FooConfig.cmake by having
FooConfig.cmake.in and running CONFIGURE_FILE(FooConfig.cmake.in
FooConfig.cmake)
on it.
In FooConfig.cmake.in, I have something like:
SET(MY_LOCAL
Xavier Larrode wrote:
Filipe Sousa a écrit :
On Friday 22 September 2006 08:15, Xavier Larrode wrote:
Hello all,
Cmake is using by default /usr/bin/c++ to compile project.
Is it a way to set it ton another compiler like g++, or gcc-color.
Thanks
CXX=g++ CC=gcc cmake
CMAKE_CXX_COMPILER
Enrico Scholz wrote:
Hello,
consider the following CMakeLists.txt
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/bar.c void foo() { }\n)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/foo.c void bar() { }\n)
add_library(foo SHARED ${CMAKE_CURRENT_BINARY_DIR}/foo.c)
target_link_libraries(foo -lz
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
Thanks Brad.
Let's say for project Foo and project Bar, I've created
a FooConfig.cmake and BarConfig.cmake. Project Foo uses Cmake
but Bar doesn't. During the installation, where should Foo and Bar place
the Config.cmake so that
David Cole wrote:
CMake bug then...?
Subject:
Re: [vtkusers] Re: Fwd: Re: Compiling VTK-5.0.2 with Cygwin make
From:
Steve Robbins [EMAIL PROTECTED]
[snip]
FIND_PATH(OPENGL_INCLUDE_DIR GL/gl.h
Lachlan Gunn wrote:
Hi,
I have been working on a project that makes use of CMake, and a
problem has come up during the course of development.
When I set a variable in a lower-level CMakeLists.txt file, it does
not propagate upwards into the parent CMakeLists.txt file. Example:
Martin Dobias wrote:
On 9/22/06, Brad King [EMAIL PROTECTED] wrote:
I'll assume you're using the MSYS Makefiles generator. Please let me
know if this is not the case.
No, I'm using MinGW Makefiles generator. Now I've tried alse MSYS
Makefiles generator and linking works correctly with both
Wojciech Jarosz wrote:
I am writing a confidence test which needs to read some asset files. In
order to tell the test where these files are located I do the following
within the test's CMakeLists.txt:
ADD_DEFINITIONS(-DRB_DATA_DIR=\${CMAKE_CURRENT_SOURCE_DIR}/\)
Within the test code I then
Jeroen Janssen wrote:
Hi,
I have a question on the evaluation/creation of target properties in
relation with dependencies.
Example:
topdir
TestDll directory with interface/ and src/
TestExe directory with src/
TestExe has a dependency to TestDll (with add_dependency)
Now
Eduard Bloch wrote:
Hello,
I need to add a certain variable and a set of strings in a set of
applications, beeing in different paths. This is required because a
static library is compiled with different settings, therefore the set of
additional libraries varies.
To avoid code duplication
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
Got it. Thank You.
Now, there is another thing that I can't seem to find.
If I have a Foo library with CMakeLists.txt:
ADD_LIBRARY(Foo foo.cpp)
then I have FooConfig.cmake for it:
SET(FOO_LIBRARY
Kai Sterker wrote:
But cmake cannot find the headers, (or libraries in /usr/local/lib),
because it does know nothing about the UNIX-like structure of MSYS.
So the problem is not that there is something wrong when running cmake
from a MSYS shell instead of a Windows command prompt. It behaves
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
Thanks Brad.
So for those two lines:
SET(CMAKE_DEBUG_POSTFIX Debug)
GET_TARGET_PROPERTY(LIBNAME Foo LOCATION)
Should I get?
prefix/lib/libfooDebug.a
I am getting (no 'Debug'):
prefix/lib/libfoo.a
but
Brad King wrote:
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
That didn't do it. This is what I am doing:
ADD_LIBRARY(Foo foo.cpp)
SET_TARGET_PROPERTIIES(Foo PROPERTIES DEBUG_POSTFIX Debug)
GET_TARGET_PROPERTY(LIBNAME Foo LOCATION)
I am still getting libfoo.a
James Mansion wrote:
Are you trying to link object files compiled without -fPIC into a shared
library? That would never work; -fPIC is required for all objects in shared
libraries.
I'm guessing so - I want to do it too! Or rather, be able
to make a static library containing objects that
Alan W. Irwin wrote:
I have noticed tests like
IF(${VARIABLE} MATCHES ^${VARIABLE}$)
in, e.g., CheckFunctionExists.cmake where VARIABLE is a macro argument.
From
the context I assume it is a test for whether the actual variable used in
the macro call has been assigned a non-null value,
Filipe Sousa wrote:
I don't understand how COMPONENT works. From the INSTALL manual the
COMPONENT argument specifies an installation component name with which
the install rule is associated, such as runtime or development.
During component-specific installation only install rules associated
Arjen Markus wrote:
SET(CMAKE_WINDOWS_OBJECT_PATH 1)
While it worked with my small test project (single file, single language),
it fails with PLplot: the setting gets in the way of the detailed tests on
the capacities of the C compiler. I get error messages about the incorrect
use of
Peter Kahn wrote:
What is the right pattern to use in cmake to create a custom rule for
converting a bunch of files?
In make I can define a custome rule for file types.
What is the right way to do this in cmake?
I can create a macro, but I'm unsure how to properly connect it
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
Is there a module like CMakeDetermineSystem.cmake
that would tell the specific Linux distribution and
architecture that compilation is running on? I would like to
use it to attach it to package name generated by CPack.
There is
Andrew Maclean wrote:
In Linux, is it possible to relink libraries before installation?
For instance if I have built with shared libraries on and
CMAKE_SKIP_RPATH OFF then I have runtime paths in the shared libraries.
When I finally decide to install a version for system-wide use (not
Hugo Costelha wrote:
I need to copy all files that match a certain patter during compilation time.
I am currenlty using the following in CMakeLists.txt:
FILE(GLOB luts lut*)
FOREACH(file ${luts})
GET_FILENAME_COMPONENT(basename ${file} NAME)
ADD_CUSTOM_TARGET( luts ALL
Hugo Costelha wrote:
On Tuesday 03 October 2006 16:07, you wrote:
You can add a custom target that runs
cmake -P myscript.cmake
and then put the glob/copy code in the script. In the script use
EXECUTE_PROCESS to call cmake -E copy in a FOREACH on the result of the
glob.
Thanks for the
Arjen Markus wrote:
for reasons I do not understand (*) the error messages I reported
earlier after setting CMAKE_WINDOWS_OBJECT_PATH to 1 have vanished.
The project's makefiles can now be generated by CMake.
In fact make begins to build the C libraries and the FORTRAN 77 libraries,
but
Pablo Odorico wrote:
How can I use cmake to copy the library headers in a portable way?
(eg: /usr/include/pgl/*.h in linux)
Is there a way to run ldconfig after make install so the library can be
used
right away? Will that affect the install in a non-unix OS?
Look at the INSTALL
Warren Turkal wrote:
On Monday 02 October 2006 08:38, Brad King wrote:
http://www.cmake.org/Wiki/CMake_FAQ#Does_CMake_support_.22convenience.22_li
There are some references to 2.2 being the current release and having to use
the current development for some features. Presumably, this info
Patrick J. Franz -- ML wrote:
I'm a fairly new CMake user, so I apologize in advance if this question
is answered trivially elsewhere. I searched through the docs and Google
already to no avail.
In a project I am working on, I need to build our Win32 libraries in
both cdecl and stdcall
Peter Kahn wrote:
What is the standard way of having cmake access libaries built on the
same subdir level?
I have a project with two subdirs: Util and App. Util builds a
library called 'utillib'. Ap builds a
library and an exe (aplib, and ap.exe).
Main\
CMakeLists.tst
Xavier Delannoy wrote:
SET(CMAKE_INSTALL_PREFIX $ENV{DESTDIRPREFIX})
MESSAGE(STATUS CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
INSTALL(TARGETS nbase_shared DESTINATION /usr/Firewall/lib)
[snip]
/home/xavierd/tempbuild/firmware/lib/libnbase/shared/cmake_install.cmake:30:
FILE cannot create
Gregor Berginc wrote:
Dear all,
yesterday I faced wierd behaviour of the newest cmake. Before, I was
using cmake version 2.4-patch 2 and the following command executed
successfully:
=
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${cpp_class}.h
COMMAND ${JAVAH_RUNTIME}
Alexander Neundorf wrote:
Original-Nachricht
Datum: Thu, 5 Oct 2006 09:53:37 +0200
Von: Gregor Berginc [EMAIL PROTECTED]
What has changed since patch 2 version? Is this a bug or just my bad
interpretation of ADD_CUSTOM_COMMAND and cmake variables?
You need to add the
James Mansion wrote:
I think you need a dependency declaration too don't you?
I've seen VStudio 2k3 build out of order without.
# App/CMakeLists.txt
ADD_EXECUTABLE(myexe ...)
TARGET_LINK_LIBRARIES(myexe mylib)
It seems actually a little more complicated in practice
because you
Richard Fuchs wrote:
Is there a way to be able to select if the build will be debug or
optimized at make time instead of during cmake time?
So, I can SET(CMAKE_BUILD_TYPE Debug) or SET(CMAKE_BUILD_TYPE Release)
for debug or optimized code respectively, then when I run make, the
frederic heem wrote:
Hi,
In some FindXXX.cmake, pkgconfig is used to locate include directories
libraries, definitions etc. I would like to set the environment variable
PKG_CONFIG_PATH to $MYLIBDIR:$PKG_CONFIG_PATH, hence pkg-config will look
first for $MYLIBDIR/mylib.pc
EXECUTE_PROCESS
Bill Tonkin wrote:
The short story is that the CMake generated makefiles try to build a target
that seems to exist, but with a slightly different name.
make[2]: *** No rule to make target
`../../libraries/my_a/CMakeFiles/my_a.di
r/build'.
[snip]
The content of CMakeLists.txt [1] is:
Mike Jackson wrote:
I just tried to have CMake generate a debug build of my project but when
cmake ran it gave me the warning that Cmake was forcing my build type to
Release since that is what VTK was built with. I _understand_ the error. What
I need to know is if there is a way to actually
frederic heem wrote:
It seems that it's not possible to add dependencies to implicit target such
as
clean and package_source. The user defined target FsmCompilerClean must be
called whenever the target clean is used.
[snip]
# fails here
ADD_DEPENDENCIES(clean FsmCompilerClean)
The clean
Helio Chissini de Castro wrote:
Hi everyone
Is there an easy way to make a different install prefix durong the install
phase, most directed for RPM construction ( like the old DESTDIR on
auto*tools ) ?
I have a code that during build parse and substitute de real install prefix,
and if i
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
I am looking at the readme.txt file in CMake's modules
directory. It says:
Please use the following consistent variable names for general use.
XXX_INCLUDE_DIRS
...
You do not have to provide all of the above variables. You should
Mike Jackson wrote:
I am attempting to set the install_name on OS X for Shared Libraries but
the solution that I _thought_ would work does not because somewhere in cmake
the linker flag -install_name is _already_ defined and so adding another
one just confuses the linker.
Is there some way
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
Is this part of CMake 2.4.3?
I get this error:
INSTALL called with unknown mode DIRECTORY
It is in CVS CMake. It will be in 2.4.4.
-Brad
___
CMake mailing list
CMake@cmake.org
Axel Roebel wrote:
I frequently struggle with the problem to set
global linker flags. Global here means these flags should be used
whenever the linker is used. The main example where I need that
is the -mno-cygwin flag of the cygwin compiler.
This flag creates objects that will not make use
Pecevski Dejan wrote:
Hi,
As part of our build process which uses cmake, we want to generate
wrapper c++ files from existing sources, for python interfacing (using
Py++ and boost.python).
The dependency we want to achieve is :
A1.cpp A2.cpp A3.cpp A1.h A2.h A3.h ... - Abase.h
Axel Roebel wrote:
The problem is that to my knowledge the only way to communicate the
deployment target to gcc is via environment variables. I admit this is a
really strange way (probably its save to say silly) to select compiler
options, but as far as I know, this is the way it is done in
Mike Jackson wrote:
On 10/10/06 4:56 PM, Brad King [EMAIL PROTECTED] wrote:
Mike Jackson wrote:
On 10/10/06 4:08 PM, Brad King [EMAIL PROTECTED] wrote:
cmake --help-command SET_TARGET_PROPERTIES
OK.. Reading all the output from that command there seems to be some
mutually exclusive
Mike Jackson wrote:
On 10/10/06 4:56 PM, Brad King [EMAIL PROTECTED] wrote:
SET_TARGET_PROPERTIES (DislocationIO
PROPERTIES BUILD_WITH_INSTALL_RPATH 1
INSTALL_NAME_DIR @executable_path/../PlugIns
)
Okay, there was a bug in the code that computes the final value
Pablo Odorico wrote:
Some questions now:
- Can't QUIET be used with components?
The entire find is either quiet or not.
- _all_ components have to be REQUIRED?
The component syntax is just a list of components that are requested.
You can interpret it however you wish in the Find module.
Mike Jackson wrote:
Thanks for the fix. I look forward to the next release of Cmake. BTW, when
is the next release?
When it's ready.
-Brad
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
Alexander Neundorf wrote:
Original-Nachricht
Datum: Mon, 16 Oct 2006 14:02:28 -0400
Von: Brad King [EMAIL PROTECTED]
An: Eric Noulard [EMAIL PROTECTED]
Betreff: Re: [CMake] How to check/set CMAKE_INSTALL_PREFIX
Eric Noulard wrote:
What is the good way to change
Matthieu Brucher wrote:
Hi,
I'm trying to use Boost in my applications. On Windows, no problem, it
can now find the good headers and libraries thank to FindBoost.cmake.
On Linux, on FC5 or on Debian testing, I have cmake 2.4-patch3, with the
FindBoost.cmake file, but when I launch cmake, i
Brad King wrote:
Helio Chissini de Castro wrote:
INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/providers.xml
DESTINATION /opt/fdo )
INSTALL( CODE MAKE_DIRECTORY\( /opt/fdo/Repositories/Library/DataFiles\) )
[snip]
MAKE_DIRECTORY is just a CMake command and knows nothing of installation
Matthew Campbell wrote:
I was wondering if there was any way to instruct cmake to generate the
same guid’s for Microsoft projects and solution files? We would like to
have the option of putting the solutions and projects in source control
but this poses a problem since the guids are
Alan W. Irwin wrote:
Are FALSE
variable values such as SWIG_DIR-NOTFOUND allowed to be overwritten by
FIND_PATH even though they are cached from a previous FIND_PATH call? Is
there a general rule I can use to always predict the results of trying
to overwrite variables that have been cached
Alan W. Irwin wrote:
I suggest this important additional caching rule concerning the FIND_xxx
commands should be stated prominently in the principal documentation
that is
obtained by running the cmake --help-full command. To be fair, somewhere
in the Wiki (I have lost the exact reference) I
Sylvain Benner wrote:
I don't know if this is possible but you can set your variable to an
empty string.
SET( SOME_OPTION )
Is it possible to remove variables from the cache ? For example:
OPTION( BUILD_X Descr OFF )
IF ( BUILD_X )
SET( SOME_OPTION Hello world CACHE)
ELSEIF
Benjamin THYREAU wrote:
Does someone know of a way to execute some cmake code contained in a string
variable ? Something like INCLUDE, but working from a string instead of a
file.
There is no language feature for this. You could try using
CONFIGURE_FILE to write the string to a file and
Prakash Punnoor wrote:
Hi,
if I use Windows cmake 2.4.x (x in 0 to 3) in MSYS/MinGW with MSYS (in
Windows
XP SP2 Ger) it segfaults with my custom Module for ASM compiler integration
(perhaps you remember...). It starts segfaulting at generation time as soon
as I add a file with an asm
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
Is there a way to enable SSL in CTest?
When I use 'https' URL, I get
curl_easy_perform() says: libcurl was built with SSL disabled[...]
I've just committed changes to support building CMake against a
system-installed curl. See this
Peter Soetens wrote:
Quoting Brad King [EMAIL PROTECTED]:
If BUILD_X is on and SOME_OPTION is set by the user, then BUILD_X is
turned off, and then back on the user may expect SOME_OPTION to have
retained its value. You can convert it to an INTERNAL cache entry so
that it does not show up
Peter Soetens wrote:
The following happened to me (cmake version 2.4-patch 2) :
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CC_COMPILER=gcc
-- Check for working C compiler: gcc
-- Check for working C compiler: gcc -- works
-- Check size of void*
-- Check size of
Alexander Neundorf wrote:
#16: the line is parsed and a vector containing the arguments is created,
which is handed the cmSetCommand. This turns the vector into a string.
#17: the line is parsed, ${srcs} is expanded to the string in srcs and parsed
again into a vector.
#08: it evaluates to
Reggie Burnett wrote:
What’s the best approach to disabling optimizations for a particular
project? We still want to use release settings just with optimizations
turned off and then just for that single project.
Unfortunately there is no good approach for this right now. You can try
removing
Abe Stephens wrote:
I have a CMake build for a project. The project contains several
directories (included with the SUBDIRS command). One of these
directories has the same name as a library that I search for using
FIND_LIBRARY. For some reason, cmake returns the path to this
subdirectory
Doug Henry wrote:
I am trying to use the sun studio compiler under linux and I am having a
terrible time getting past the cmake compiler tests. I'm not sure what
the error messages are telling me, but it looks like some incorrect
flags are being passed in. I extracted the short test program
Michael Hufer wrote:
---
[...]
if( DEFINED ${EXT_LINK_FLAGS} )
message( module ${EXT}: adding the linker flags '${EXT_LINK_FLAGS}' )
set_target_properties( ${MODULE} PROPERTIES LINK_FLAGS
${EXT_LINK_FLAGS} )
endif( DEFINED ${EXT_LINK_FLAGS} )
[...]
---
which is only written
Doug Henry wrote:
Looks like I may have missed a couple options (-R and -KPIC). As far as
I can tell, the compiler should work exactly like the already supported
SunOS version of the compiler. Just copy the options from the already
included SunOS.cmake file, which are almost the same as the
Doug Henry wrote:
I noticed that the default options for build mode may be a bit strange
for sun compilers. The release mode uses -xO2 and the minimum size mode
uses -xO3 (higher optimization level?). There seems to be an option
-xspace which reads:
-xspace Do not do
Doug Henry wrote:
Before I commit anything, I would like to verify how cmake is doing its
compiler detection. Is everything simply based on name? I can have cc
in my path which is gcc, or I can set my path in a way that has cc from
sun studio. Is cmake capable of telling the difference? I
Gregor Berginc wrote:
I am writting cmake file to build library libVisionComponents that
includes sources from subdirectories (each subdir is different
component). In the main cmake file, sources and headers are listed as
ComponentName/File.cpp. The library is compiled successfully, but when
Tristan Carel wrote:
To use it:
### Extract information from the current subversion working copy
INCLUDE(UseSubversion.cmake)
IF(SUBVERSION_SVN_FOUND)
SUBVERSION_REPOSITORY(${PROJECT_SOURCE_DIR})
ENDIF(SUBVERSION_SVN_FOUND)
This looks like a nice module. You should be able to convert it
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
Sounds like CMAKE_MODULE_PATH suggested by Alan
wouldn't do the trick.
Will this change make it for CMake 2.4.4?
I'm not sure about 2.4.4. You can check the documentation of the
FIND_PACKAGE command when it comes out. It will
Tristan Carel wrote:
In Modules/readme.txt, in the list of variables to provide, I can read:
---
XXX_EXECUTABLE Where to find the XXX tool.
XXX_YYY_EXECUTABLE Where to find the YYY tool that comes with XXX.
---
Subversion is a set of
Tristan Carel wrote:
RC1 in attachment.
That looks pretty nice. Here are a few comments:
1.) Please change EXEC_PROGRAM to EXECUTE_PROCESS. You can use the new
OUTPUT_STRIP_TRAILING_WHITESPACE option in CVS CMake's EXECUTE_PROCESS
to avoid extra newlines. Since the module will not be
Alan W. Irwin wrote:
I think the real problem here is the documentation of FIND_PACKAGE needs
updating.
[snip]
The meaning of the phrase another project built by CMake is not clear. I
cannot believe that is some arbitrary project somewhere on the net.
Even if
it is is another project built
Tristan Carel wrote:
To extract the list of headers in a set of source files contained in a
variable, I don't see other solution than iterate on each element and
check that the items match the regular expression:
You can submit a feature request for LIST(FILTER) here:
http://www.cmake.org/Bug
Maik Beckmann wrote:
If I put the add_custom_command into
Project_dir/mydir/CMakeLists.txt everything works fine. Is this a
limitation of cmake?
Yes. Custom commands are considered on a per-directory basis when
looking for source files.
Also note that your example command modifies the source
Tristan Carel wrote:
now the RC2
That looks good. Thanks for making the changes.
Please open a feature request here:
http://www.cmake.org/Bug
and attach the lateset revision of the file. Send me the bug number
please. Then I'll do the final testing and integration into CMake upstream.
Alan W. Irwin wrote:
A module that gives header and library information for a package does sound
most useful, and, in fact, we could use that kind of module for the PLplot
project (especially if the module is automatically generated from the
install information that CMake already has access
Alan W. Irwin wrote:
I have the following situation:
One subdirectory has a complicated target build (a library). Another
subdirectory has a custom command which only works if the library is built
first.
I know of no way to directly get a custom command to depend on a target.
The
Axel Roebel wrote:
I wonder whether anybody
sees a simpler solution to the problem, like a simple target property
that will remove the traget from the list of targets linked
to the all target.
In CMake from CVS and in the upcoming 2.4.4 release you can do
ADD_EXECUTABLE(myexe
Benjamin Roy wrote:
DOT_PATH = ${DOT_PATH}
Try using the syntax
DOT_PATH = @DOT_PATH@
and the @ONLY option of CONFIGURE_FILE. This should get rid of the
error. However a separate problem is that CMake should have reported a
better error in the first place.
Maik Beckmann wrote:
Hello
I would like to discuss three points
1. naming conventions
2. what if pkg-config sends an error
3. protect already defined variables
Another approach to this problem is to setup the pkgconfig macros so
they can be used by Find*.cmake modules. When a user
Orion Poplawski wrote:
This is apparently because when the suffixes are added
to the search list in cmFindBase they are checked for existence before
the lib-lib64 mapping is done and since /usr/lib/octave-2.9.9 doesn't
exist, it doesn't add it to the search. I'd vote for just removing the
Jacob Foshee wrote:
Perhaps if Find3rdParty.cmake or 3rdPartyConfig.cmake advertised a
3rdParty_BIN_DIR or 3rdParty_RUNTIME_DIR this would help? I could try
writing a FIND_RUNTIME_LIBRARY macro if that would help.
Some project's modules already do export a FOO_RUNTIME_LIBRARY_DIRS
variable
Maik Beckmann wrote:
Brad mentioned using _ as a prefix should be enough. But what about
module authors who uses other modules? The modules may _-prefix the
same variable name, i.e. _to.
In that case you should just use the verbose prefix. This is why we
call them MACROs and not functions.
Clinton Chau wrote:
In order to change the compiler options, and to submit additional
preprocessor defines, I have ended up having to modify the
CMAKE_CXX_FLAGS property in the CMakeLists.txt in the root of the project.
Am I just not understanding how CMake works, since I am new to using
Filipe Sousa wrote:
Mattias Holm wrote:
Hi there,
I am new to the list, so excuse me if this has been asked before.
I am trying to figure out if there is a good way of setting the
language dialect that you are using. For example, I am working with a
project written in C99, and thus I
Clinton Chau wrote:
You're right, that property is being set in the CMakeList.txt file.
Given this, how should you make CMAKE_CXX_FLAGS available to the user for
modification in CMakeSetup.exe, without setting the value in CMakeLists.txt?
That is, I always want the user to be able to
Tristan Carel wrote:
Hi,
The documentation of `FIND_LIBRARY' specify:
Once one of these calls succeeds the result variable will be set and
stored in the cache so that neither call will search again.
Is there a way to avoid this behavior? I've got a FIND_LIBRARY whose
search locations
Yann Renard wrote:
is it possible to remove the line containing the compiled filename under
windows (MS visual studio 8) ? this line is printed by cl I imagine but
cmake already informs about the built file. this is not clean in my
opinion.
To my knowledge this is not possible. We have to
901 - 1000 of 15210 matches
Mail list logo