Hendrik Sattler wrote:
Am Friday 14 November 2008 04:18:59 schrieb Fernando Cacciola:
In preparing the cmake build system for CGAL I'm having this issue:
Users can define CGAL_DIR explicitely when configuring their own
programs in order to allow find_package(CGAL) to locate CGALConfig.cmake
Hendrik Sattler wrote:
Fernando Cacciola schrieb:
Nope... my users don't want to do that... (or rather I don't know which
DESTDIR, if any, they'll use at all, so the solution cannot involve
anything like it)
They want to install CGAL in the correct place, whatever that is, but
without
Hendrik Sattler wrote:
Fernando Cacciola schrieb:
and install the CGALConfig.cmake, only.
It doesn't make sense to install both at the same time.
Not really... FindCGAL.cmake basically locates and loads
CGALConfig.cmake, which is better placed in the install tree since the
binary folder
, is there a way to create a normal user install target and a
separate super user install target??
Something that would allow my users to do something like:
make install
sudo make root-install
TIA
Fernando Cacciola
___
CMake mailing list
CMake@cmake.org
http
Hi Bill,
Fernando Cacciola wrote:
Ha I see... that is 2.6 specific right?
There are still too many 2.4 versions shiped with Linux et al, and we
don't want to ask our users to *manually* upgrade cmake when they
already have one installed, so I'm keeping all compatible with at
least 2.4.5
Hendrik Sattler wrote:
Bill Hoffman schrieb:
OTOH, it could make sense to do the following:
find_packge( CGAL REQUIRED components )
include( ${CGAL_USE_FILE} )
add_executable( program ... )
use_CGAL( program )
so it works now with 2.4, and eventually upgrade it to use target
Hi Hendrik,
But it is not backwards-compatible and will fail to link on the new
version while it worked fine on the old version.
Why??
Because if the ${FOO_USE_FILE} doesn't do what it always does (globally
adding this stuff), you _have_ to insert the new macro call to make it
compile again.
Hi Colin,
On Tue, 11 Nov 2008 16:13:43 -0200
Fernando Cacciola
[EMAIL PROTECTED] wrote:
Hi Andreas,
On 11 Nov 2008 18:12:33 +0100, Andreas Pakulat wrote:
In fact I don't understand why include_directories and
add_definitions are not deprecated as well
Which is precisely my point
Hi Bill,
So, I guess I will comment on this... :)
:)
Originally CMake was directory based. We are moving towards being
target based. For directories, targets, and projects, there should be
a way to set:
- defines
- includes
- link libraries
- compiler flags
Hard to argue with that
Hi Bill,
Eric NOULARD wrote:
Le Tue, 11 Nov 2008 11:47:20 -0200,
Fernando Cacciola [EMAIL PROTECTED] a écrit :
Hi,
Since my last post about this got unnoticed I'm reposting it, this
time with additional information.
Sorry, I did see your post, and I am busy...
Understandable.
So, you
Hi Andreas,
On 11.11.08 14:12:39, Fernando Cacciola wrote:
Hi Andreas,
On 10.11.08 12:01:13, Fernando Cacciola wrote:
The CGAL library (www.cgal.org) uses cmake as build system. Thus, our
users do:
find_package(CGAL REQUIRED)
include( ${CGAL_USE_FILE} )
...
UseCGAL.cmake, as all
.
Shall I add this to the tracker or is this behaviour on purpose??
TIA
Fernando Cacciola
if
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
Eric NOULARD wrote:
Le Tue, 11 Nov 2008 11:47:20 -0200,
Fernando Cacciola [EMAIL PROTECTED] a écrit :
Hi,
Since my last post about this got unnoticed I'm reposting it, this
time with additional information.
[...]
May be CMake devel are busy :-)
Fair enough.
The culprint
Hi Andreas,
On 10.11.08 12:01:13, Fernando Cacciola wrote:
The CGAL library (www.cgal.org) uses cmake as build system. Thus, our
users do:
find_package(CGAL REQUIRED)
include( ${CGAL_USE_FILE} )
...
UseCGAL.cmake, as all such files, call include_directories,
add_definitions
VAR or specifies
the type correctly as in: -DVAR:STRING=whatever
Shall I add this to the bug tracker?
Is there any workaround which doesn't require users to specify the type?
TIA
Fernando Cacciola
___
CMake mailing list
CMake@cmake.org
http
missing something?
TIA
Fernando Cacciola
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
Fernando Cacciola
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
Fernando Cacciola wrote:
try_compile( X_COMPILE_RES
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/X.cpp
CMAKE_FLAGS
-DINCLUDE_DIRECTORIES:STRING=${CMAKE_SOURCE_DIR}/includeA;${CMAKE_SOURCE_DIR}/includeB
OK.
By looking at the source code I realize that each flag
Fernando Cacciola
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
OpenGL instead of GL?
Keep in mind that this is a working project which builds and run
correctly via the old shell-based build system.. it is my cmake port
wich fails.
Best
Fernando Cacciola
___
CMake mailing list
CMake@cmake.org
http
Fernando Cacciola wrote:
Mike Jackson wrote:
The header is located in a framework called OpenGL.framework and the
include
style for frameworks is the name of the framework (minus the
extension) and
then the header file, so on OS X the proper include would be:
#include OpenGL/gl.h
Hmmm
this..
Is that correct for your situation?
Apparently, yes.
My user reported that locate gl.h shows up precisely that path.
I'm not sure what does that mean though. Should FindOpenGL.cmake search
for both cases and define a compile flag telling which path prefix to use?
TIA
Fernando Cacciola
Mike Jackson wrote:
Which version of Qt are you using? Qt 4.x is only officially supported
on the native window system (Quartz/Carbon) NOT X11. Qt 3.x _may_ run
under X11 on OS X so I don't know.
We still use Qt 3.x as a matter of fact.
If some one new to OS X just did a locate on gl.h
and do
not call original one.
And I also don't want to do that because my system is deployed on
several users each having its own version of cmake, so I don't want to
hard code a particular version of FindOpenGL.cmake by distributing it
unless I really don't have any other choice.
Best
Fernando
.
This undocumented feature is in fact the way to get variables out of
subdirs:
root/CMakeLists.txt
add_subdirectory(sub)
set(result)
message( STATUS result=${result} )
root/sub/CMakeLists.txt
set(result I'm a subdir result! cache internal force )
HTH
Fernando Cacciola
), but this is undocumented
and extremely none-obvous, so, can we have a fetch(var) as well?
Should I formally suggest that via a bug report?
TIA
Fernando Cacciola
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
} )
endif()
Is there a better way??
TIA
Fernando Cacciola
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
this:
cmake -DCMAKE_CXX_COMPILER=${USER_CXX_COMPILER}
it won't work when the intention is NOT to specify that (the usual case),
unless a value of NOTFOUND or is interpreted as such.
TIA
Fernando Cacciola
___
CMake mailing list
CMake@cmake.org
http
(the one we are discussing)
Best
--
Fernando Cacciola
SciSoft
http://scisoft-consulting.com
http://fcacciola.50webs.com
http://groups.google.com/group/cppba
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
Hi Andreas,
On 03.07.08 12:23:11, Doug Gregor wrote:
On Tue, Jul 1, 2008 at 1:24 PM, Fernando Cacciola
[EMAIL PROTECTED] wrote:
(7)
I couldn't understand the dicotomy between the cached and non-cached
versions of the include dirs:
Boost_INCLUDE_DIRS vs Boost_INCLUDE_DIR
What's the choice
Doug Gregor wrote:
On Thu, Jul 3, 2008 at 12:23 PM, Doug Gregor
[EMAIL PROTECTED] wrote:
Anyway, I'm working on a bunch of issues with FindBoost, and will ping
the list when I think I have it right.
There's a much-improved FindBoost module now in CMake CVS. Hopefully
it will get merge in to
to install CMake 2.6 which is
usually not just a simple apt-get/rmp call in many linuxes)
Best regards
--
Fernando Cacciola
SciSoft
http://scisoft-consulting.com
http://fcacciola.50webs.com
http://groups.google.com/group/cppba
___
CMake mailing list
Hi,
It seems that pgCC is not supported even in 2.6.
In that case it is just a matter of adding a pgcc.cmake file with the
appropiate settings right? or would the CMake binary itself need some patch?
And btw, has anybody out there such a pgcc.cmake? :)
TIA
--
Fernando Cacciola
SciSoft
Hi,
I just got a report from a user saying that cmake doe not recognize his Sun
Studio CC compiler.
I found on the list archives that this has been reported mid 2006. Is the
problem fixed in CMake 2.6?
He is using 2.4-8
TIA
--
Fernando Cacciola
SciSoft
http://scisoft-consulting.com
http
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
http://groups.google.com/group/cppba
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
, that transformation turns /usr/local into C:/cygwin/usr/local,
which I found to be needed by the windows cmake binary as it uses low-level
FILE( INSTALL ) commands to do the actual installation when nmake install
is executed.
Best
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
http
Hi Bill,
Fernando Cacciola wrote:
Hi People,
Due to some project specific constrains, I need to use cmake within
cygwin but to compile using Visual C++ via nmake.
Since the cygwin cmake doesn't support nmake I must use the windows
cmake binary, but naturally knowing that I am running under
Hi Brandon,
On Mon, Mar 3, 2008 at 5:11 PM, Fernando Cacciola
[EMAIL PROTECTED] wrote:
Brandon wrote:
I am starting to wonder if the whole Lua thing is indeed a red
herring, and what CMake really needs is the best possible website to
document, tutorialize, and market CMake. In other
on the wrong tail)
Best
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
http://groups.google.com/group/cppba
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
} DESTDIRLEN )
if ( ${DESTDIRLEN} GREATER 0 )
message( STATUS DESTDIR specified ($ENV{DESTDIR}). Overriding
CMAKE_INSTALL_PREFIX (${CMAKE_INSTALL_PREFIX}) )
set( CMAKE_INSTALL_PREFIX CACHE PATH Use DESTDIR *instead* of
CMAKE_INSTALL_PREFIX FORCE )
endif()
TIA
--
Fernando Cacciola
SciSoft
http
?? The documentation of IF() doesn't match this behaviour
AFAICS.
TIA
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
http://groups.google.com/group/cppba
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
as argument (like the IF of any other language I ever came
across), but a variable.
Best
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
http://groups.google.com/group/cppba
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman
Fernando Cacciola wrote:
string( LENGTH $ENV{DESTDIR} DESTDIRLEN )
if ( ${DESTDIRLEN} GREATER 0 )
message( STATUS DESTDIR specified ($ENV{DESTDIR}). Overriding
CMAKE_INSTALL_PREFIX (${CMAKE_INSTALL_PREFIX}) )
set( CMAKE_INSTALL_PREFIX CACHE PATH Use DESTDIR *instead* of
CMAKE_INSTALL_PREFIX
Sylvain Benner wrote:
Hi,
You should use IF(VAR) instead.
!! Of course !!
I got confused because what I really tried at first, but didn't work, was
this:
if ( $ENV{SOME_ENV_VAR} )
so I figured I needed to load the enviroment variable into a cmake
variable first, for which I added:
Hi Mike,
I don't understand. If the user wants to have a destination other
than the default provided by CMake, why don't they just run ccmake/
cmakesetup and set the CMAKE_INSTALL_PREFIX to what they want?
CMake generated project files/makefiles can only be used on the
system they were
Brandon Van Every wrote:
On Feb 18, 2008 3:34 PM, Fernando Cacciola
[EMAIL PROTECTED] wrote:
XXXConfig.cmake should ...
FindXXX.cmake shoud ...
UseXXX.cmake should set include directories, libraries, compiler and
linker
flags, etc, based on the settings defined in a XXXConfig.cmake
that if it is a an enviroment variable it is stored in the cache,
but not if set in the command line?
Can it be stored in the cache if passed in the command line?
TIA
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
http://groups.google.com/group/cppba
Hi Alexander,
On Tuesday 19 February 2008, Fernando Cacciola wrote:
Hi people,
According to my experiments in 2.4.7, XXX_DIR seems rather special.
Consider a CMakeLists.txt containing just find_package(XYZ)
Run cmake .
You'll see the error:
CMake Error: XYZ_DIR is not set. It must be set
copy them doesn't work in Vista because of
the access restrictions to ProgramFiles.
Putting them in the binary folder works, but doesn't seem right (only
XXXConfig.cmake should go there).
Any other ideas?
Best
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
http://groups.google.com/group
, are there any tools to a
handle a second custom cache?
TIA
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
http://groups.google.com/group/cppba
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
be a FORCE_IF_NULL option, because it
makes no sense at all to keep a NOTFOUND value for an INCLUDE_DIR when the
right path is available.
Best
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
http://groups.google.com/group/cppba
___
CMake
Hi Bill,
behaviour. Don't break that as you can always use
if (NOT DEFINED VAR)
set (VAR foo CACHE .. FORCE)
But:
find_library(FOO_VAR foo)
This will set FOO_VAR (in the cache) if it is not set
or if the value has -NOTFOUND in it.
I just tried it and find_path (didn't try
Hi Hendrik,
So you want to give NOTFOUND an even more special status than all the
other negative variable values?
Don't get me started on the existence of all these negative values, or on
the fact that there is just a string type, or the fact that not even that is
actually true as there is a
Bill Hoffman [EMAIL PROTECTED] wrote
in message news:[EMAIL PROTECTED]
Fernando Cacciola wrote:
*you* as in *me* in any *new* script?
Sure I can, but I found this problem in FindQt4, a standard cmake module.
The -NOTFOUND value can never end up in that variable with the current
FindQt4
in 2.4.7? )
A bug in 2.4.8 ( DOCSTRING should not be needed? )
A feature in 2.4.8 ? (is needed just now? )
TIA
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
[EMAIL PROTECTED] wrote:
On Friday 25 January 2008 10:58:19 am Fernando Cacciola wrote:
Hi,
I've been using 2.4.7 until this morning when I saw the 2.4.8
announcement
and jumped right away to install it (silly me).
I have some script that finds Qt4 but stopped working on 2.4.8.
Tracing
Fernando Cacciola wrote:
Hi,
I've been using 2.4.7 until this morning when I saw the 2.4.8 announcement
and jumped right away to install it (silly me).
I have some script that finds Qt4 but stopped working on 2.4.8.
Tracing the problem in FindQt4.cmake I found this...
There is one (at least
, it is the folder what is found, not the file, and as a
consequence the resulting path is one level wrong.
Is this a bug in find_path (in 2.4.7)?
TIA
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
___
CMake mailing list
CMake@cmake.org
David Cole wrote:
How about this in the CMakeLists.txt file instead? (Force it into the
cache
rather than using a simple set.)
SET(CMAKE_CONFIGURATION_TYPES Debug;Release CACHE STRING limited
configs
FORCE)
The generator rejects it.
--
Fernando Cacciola
SciSoft
http://fcacciola
.. and possibly others
What the best way to extract that for the current generator (other than hard
coding it)?
P.S: Yes, this is directly related to boost-style autolinking in case you
wonder (but for a different project which just borrows that from boost)
TIA
--
Fernando Cacciola
SciSoft
http
you run it again, you get the same error (the generator still gets the
old cached value instead of the new one)
you need to run it again to get it right.
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
___
CMake mailing list
CMake
Is it possible to support different compilers and options from the same
source tree?
If so, how?
TIA
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
Alexander Neundorf wrote:
On Wednesday 19 December 2007, Alberto Luaces wrote:
El Wednesday 19 December 2007 15:36:49 Fernando Cacciola escribió:
Is it possible to support different compilers and options from the same
source tree?
If so, how?
This behaviour is present by default, I think
POST_BUILD COMMAND copy $(TargetPath)
$(ProjectDir) )
Best
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
in the end even for in-source builds)
TIA
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
What's the best way to produce mangled library names (encoding in the target
name some configuration properties)?
Examples of mangled library names are here, in Boost:
http://www.boost.org/more/getting_started/windows.html#library-naming
TIA
--
Fernando Cacciola
SciSoft
http://fcacciola
Hi
A single VS .vcproj file can have both debug and release configurations.
How can I produce that sort of project file with CMake?
Would calling CMake twice, setting CMAKE_BUILD_TYPE differently each time,
do the magic?
TIA
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
produce only one configuration
depending on that.
Well, the real question now then: to have each configuration has its own
properties, like target name, definitions and dependecies, I just need to
switch on CMAKE_BUILD_TYPE?
TIA
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
Bill Hoffman wrote:
Ken just checked in his changes, so if you create a patch, use CVS
CMake.
Cool.
Is there a dev-list (here?) or at least someone I can forward the
diff to look at before I commit?
I don't think you can commit. Just create a patch and send it to me.
OK.
Best
Fernando
-Name.c_str());
- os /code/b: ;
+ os /code/b/a: ;
}
this-PrintHTMLEscapes(os, op-Brief.c_str());
if(op-Full.size())
I compiled and tested it locally and it works AFAICT.
Best
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
Is there any hyperlinked (and preferably indexed) command reference?
TIA
Fernando Cacciola
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
71 matches
Mail list logo