This suggestion addresses the potential that the TARGET environment might be
able to utilize the feature.
Just because I can compile code for a hypothetical target machine, there is no
guarantee that the actual target machine will have the necessary features.
I recognize that most compilations h
I was not aware that the export of ANY of the additional information had ever
been implemented.
${CMAKE_HOST_HAS_} was just my suggestion for a possible naming
convention.
Richard
On Mar 26, 2010, at 8:25 PM, Alexander Tarasov wrote:
> First of all the ${CMAKE_HOST_HAS_} does not seem to work
First of all the ${CMAKE_HOST_HAS_} does not seem to work.
Also I've looked through the patch submitted in the context of bug
#7273. It looks like it implements (fixes) the CPU features retrieval
but it does not export them to the cmake user.
As far as I understand the only way to export a cm
You can use the "Try_Compile()" function with a source file that has
specific SSE and MMX code. If the file compiles correctly then you
have SSE/MMX.
This is what I used:
# --- Begin
set (SSE_COMPILE_FLAGS "")
option(AIM_USE_SSE "Use SSE2/3 Instructions where possible." OFF)
if (AIM_U
Hi All,
Is there a clean way to find out if host CPU supports MMX & SSE2 extensions?
As far as I know this stuff is analyzed by cmake (am I wrong?). However
I've did not find any way this info can be used in CMakeLists.txt.
Best regards,
Alexander.
> Is there a problem with just using "if(EXISTS" like I suggested in my first
> reply?
That's what I ended up doing and it works:
macro( set_osx_sysroot)
if (NOT EXISTS ${ARGV0})
message(FATAL_ERROR "Could not find ${ARGV0}.")
endif (NOT EXISTS ${AR
Brad,
Now that the setup scripting is more complex, I'm trying to use your
"cmake_common.cmake" script for my CMake submissions. Tracking changes to that
script would be much easier for me if you have it published in a publicly
readable git repository.
Richard
On Feb 22, 2010, at 12:50 PM, Br
On Friday 26 March 2010 04:20:41 pm David Cole wrote:
> On Fri, Mar 26, 2010 at 5:00 PM, Clinton Stimpson
wrote:
> > On Friday 26 March 2010 02:36:19 pm Sean McBride wrote:
> > > On Fri, 26 Mar 2010 14:38:54 -0400, Simmons, Aaron said:
> > > >While it will compile, the resulting binary needs to be
On Fri, Mar 26, 2010 at 5:00 PM, Clinton Stimpson wrote:
> On Friday 26 March 2010 02:36:19 pm Sean McBride wrote:
> > On Fri, 26 Mar 2010 14:38:54 -0400, Simmons, Aaron said:
> > >While it will compile, the resulting binary needs to be compatible with
> > > 10.4.
> >
> > It is a common misconcept
>From CMake's point of view, a "framework" that works with find_library is a
framework with the "expected structure" and an actual library file of the
same name as the framework inside of it at the expected location. So that's
why find_library does not work with the Mac SDK folders...
Is there a p
On 2010-03-26 16:44-0400 Brad King wrote:
Bill Hoffman wrote:
Alan W. Irwin wrote:
It has been reported (by Arjen Markus) that the MinGW issue
is because something in that case overwrites CMAKE_SOURCE_DIR
There is only one line in the entire source tree that ever sets
that variable. It's in
Is this linux or mac? I know with 10.6 Apple changed the default build from
32 to 64 bits, but the 3.0 CUDA runtime (which most of use) only supports 32
bit builds. Start off with an empty build directory and set the following
environment variables:
CFLAGS=-m32
CXXFLAGS=-m32
Also tr
On Friday 26 March 2010 02:36:19 pm Sean McBride wrote:
> On Fri, 26 Mar 2010 14:38:54 -0400, Simmons, Aaron said:
> >While it will compile, the resulting binary needs to be compatible with
> > 10.4.
>
> It is a common misconception that one needs to use the 10.4 SDK to
> create an executable that
Bill Hoffman wrote:
> Alan W. Irwin wrote:
>> It has been reported (by Arjen Markus) that the MinGW issue
>> is because something in that case overwrites CMAKE_SOURCE_DIR
There is only one line in the entire source tree that ever sets
that variable. It's in Source/cmMakefile.cxx:
this->AddDefi
Alan W. Irwin wrote:
Hi Brad:
The PLplot project still uses some special Fortran support files for our
CMake-2.6.4 users, but we have run into cross-platform problems in that
case
where Linux can access our special location for Fortran Platform files, but
MinGW cannot. It has been reported (b
On Fri, 26 Mar 2010 14:38:54 -0400, Simmons, Aaron said:
>While it will compile, the resulting binary needs to be compatible with 10.4.
It is a common misconception that one needs to use the 10.4 SDK to
create an executable that is compatible with 10.4. This is not so.
What you want to do is se
Hi Brad:
The PLplot project still uses some special Fortran support files for our
CMake-2.6.4 users, but we have run into cross-platform problems in that case
where Linux can access our special location for Fortran Platform files, but
MinGW cannot. It has been reported (by Arjen Markus) that the
Have a look at http://www.cmake.org/Wiki/BundleUtilitiesExample
which uses GetPrerequisites.cmake under the covers.
Clint
On Thursday 25 March 2010 06:09:50 am Benoit wrote:
> Hello,
>
> I am using cmake in my project and i want the install script to
> automatically find and install all the DLL
Hi,
I've a top level project which is using Qt. Therefore I've a lot of
defines and compiler switches on.
Further more, there is an of Qt independent library with unit tests.
$ cat project/CMakeLists.txt
...
add_definitions(-DQT_NO_KEYWORDS)
add_definitions(-DQT_NO_CAST_FROM_ASCII)
add_definition
>Probably not working because the 10.4u SDK is not is any "standard"
>location like /Library/Frameworks or /System/library/Frameworks. You
>may have to add the additional argument to add another search path.
Actually, that doesn't work either. I think its because it has an .sdk
extension and
Probably not working because the 10.4u SDK is not is any "standard"
location like /Library/Frameworks or /System/library/Frameworks. You
may have to add the additional argument to add another search path.
___
Mike Jackson
Actually, it's a framework. The docs say find_library will work with
frameworks (which are also folders). E.g., find_library(carbon Carbon) will
work.
From: David Cole [mailto:david.c...@kitware.com]
Sent: Friday, March 26, 2010 13:15
To: Simmons, Aaron
Cc: cmake@cmake.org
Subject: Re: [CMake]
find_library finds a library. MacOSX10.4u is a directory, not a library.
You just want:
if(EXISTS "/Developer/SDKs/MacOSX10.4u")
On Fri, Mar 26, 2010 at 2:08 PM, Simmons, Aaron
wrote:
> When compiled on Mac OS X, my project links against the 10.4 SDK. This SDK
> is often not installed by defau
I am trying to use CMake to build a very simple CUDA program. I am seeing the
following errors when I try to build:
> /usr/include/c++/4.2.1/new(95): error: first parameter of allocation function
> must be of type "size_t"
> /usr/include/c++/4.2.1/new(96): error: first parameter of allocation f
While it will compile, the resulting binary needs to be compatible with 10.4.
-Original Message-
From: Sean McBride [mailto:s...@rogue-research.com]
Sent: Friday, March 26, 2010 12:35
To: Simmons, Aaron; cmake@cmake.org
Subject: Re: [CMake] find_library and mac os x SDKs
On Fri, 26 Mar
On Fri, 26 Mar 2010 14:08:04 -0400, Simmons, Aaron said:
>When compiled on Mac OS X, my project links against the 10.4 SDK. This
>SDK is often not installed by default on newer systems (10.6, for
>example). I would like to put in a check for whether the SDK is present
>before compiling (otherwis
When compiled on Mac OS X, my project links against the 10.4 SDK. This SDK is
often not installed by default on newer systems (10.6, for example). I would
like to put in a check for whether the SDK is present before compiling
(otherwise the developer gets all kinds of hard-to-understand compil
On 3/26/10 5:22 AM, Michael Schildt wrote:
You don't generally need to use link-directories - if you're using
imported targets from a *Config.cmake file, the build type choice I
would imagine is automatic (?),
Yes, that is that the former guys wrote and it is really working this
easy way now.
On 3/26/10 9:40 AM, Brad King wrote:
david.k...@l-3com.com wrote:
One thing you can do with one directory full of .exe and .dll files is
to copy it somewhere else—to an arbitrary directory on another computer,
Perhaps the install() command is better for that.
-Brad
What I've done
The documentation is generated on a Windows machine and thus the Xcode
generator is not available there. Probably an oversight by the CMake
devs..
___
Mike Jackson www.bluequartz.net
Principal Software Engineer
Hello!
I've noticed that XCode and Kdevelop3 Generators are missing in the
documentation, which is online avaliable:
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#section_Generators
Is the documentation outdated, or is the support for these generators
dropped?
Cheers,
Matthias.
I will now answer my own question. The ADD_CUSTOM_COMMAND way works
BUT one must be sure to get the OUTPUT, and the named file on the
ADD_LIBRARY line
exactly the same.
or, said the other way, i made a bonehead typo in my CMakeLists.txt
Sorry for the noise,
Rupert
--
Hi,
In my build i have a .cpp file (actually many) which is generated from
a template using a cmake configure file command.
I tried using CONFIGURE_FILE in the CMakeLists.txt, and this works,
but if the template is changed, or the .cpp file gets removed, then
the file will not be regenerated unle
david.k...@l-3com.com wrote:
> One thing you can do with one directory full of .exe and .dll files is
> to copy it somewhere else—to an arbitrary directory on another computer,
Perhaps the install() command is better for that.
-Brad
___
Powered by www.k
You don't generally need to use link-directories - if you're using
imported targets from a *Config.cmake file, the build type choice I
would imagine is automatic (?),
Yes, that is that the former guys wrote and it is really working this
easy way now.
and if not you should be passing full
pa
On 26. Mar, 2010, at 9:23 , Micha Renner wrote:
> Am Freitag, den 26.03.2010, 08:33 +0100 schrieb Michael Wild:
>> On 25. Mar, 2010, at 23:41 , Hai Nguyen wrote:
>>
>>> Hi all,
>>>
>>> Is there a way for me to rename the executable during the install? I'm using
>>> the same CMakeList.txt to bui
Am Freitag, den 26.03.2010, 08:33 +0100 schrieb Michael Wild:
> On 25. Mar, 2010, at 23:41 , Hai Nguyen wrote:
>
> > Hi all,
> >
> > Is there a way for me to rename the executable during the install? I'm using
> > the same CMakeList.txt to build several versions and I'd like to install
> > them t
On 25. Mar, 2010, at 23:41 , Hai Nguyen wrote:
> Hi all,
>
> Is there a way for me to rename the executable during the install? I'm using
> the same CMakeList.txt to build several versions and I'd like to install
> them to different directories but with the version number stripped off of
> the e
38 matches
Mail list logo