Re: [CMake] Problems finding dependence library

2012-09-20 Thread Reza Housseini
On Thu, Sep 20, 2012 at 5:32 PM, Bogdan Cristea  wrote:
> On Thursday 20 September 2012 17:25:35 Reza Housseini wrote:
>> set(CPPLIB_DIR "${CMAKE_SOURCE_DIR}/../core/build")
>> find_library(CPPLIB_SIEVE_LIBRARY NAMES libsieve PATHS CPPLIB_DIR)
>
> Use instead sieve for your library name. Also, check with
> message(${CPPLIB_DIR})
> the path to your library
>
> --
> Bogdan
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake

Thank you for your answer. I tried that but it didn't work. Paths are
alright. I even used absolute paths. What could be the problem of
that?
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] 'NMake Makefiles' generate does not support parallel builds (/MP)?

2012-09-20 Thread Loaden
As I know, qmake support /MP on command line builds after set ENV CL=/MP,
and nmake can do parallel builds.
Follow the MS docs:
cl a.cpp b.cpp c.cpp /MP should works well on command line.
Seems CMake does not implements this.
So, can I request a feature for this?

2012/9/21 Bill Hoffman 

> nmake does not do parallel builds.  Try using jom.
>
> http://blog.qt.digia.com/2009/**03/27/speeding-up-visual-c-qt-**builds/
> http://qt-project.org/wiki/jom
>
>
> /MP only works from the VS IDE.
>
>
>
> On 9/20/2012 11:34 AM, Andreas Haferburg wrote:
>
>> Hi Yuchen,
>>
>> we're using the same way to enable /MP, and it works for us. You didn't
>> say exactly what doesn't work, so I'm left to guessing.
>>
>> Have you checked in Visual Studio if the flag is set (Project
>> properties->C/C++->Command Line)? Maybe there's a conflicting option
>> enabled? Or maybe you're changing the CMAKE_CXX_FLAGS variable too late,
>> e.g. after calling add_executable()?
>>
>> Have you checked the value in Tools->Options->Projects and
>> Solutions->VC++ Project Settings->Maximum ...
>>
>> Best regards,
>> Andreas
>>
>>
>> On 20.09.2012 10:45, Loaden wrote:
>>
>>> Hi, there!
>>> I am using Windows SDK 7.1 + nmake + CMake for building Windows
>>> applications.
>>> Follow these:
>>> http://www.cmake.org/**pipermail/cmake/2009-April/**028668.html
>>> http://msdn.microsoft.com/en-**us/library/bb385193.aspx
>>> I can't make /MP option works after this change in CMake's main
>>> CMakeLists.txt
>>>
>>> if (MSVC)
>>>SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
>>>SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
>>>message(STATUS "CMAKE_CXX_FLAGS = ${CMAKE_CXX_FLAGS}")
>>>message(STATUS "CMAKE_C_FLAGS = ${CMAKE_C_FLAGS}")
>>> endif()
>>>
>>>
>>> I know Jom which is a good choice for speed up compilation, but some
>>> times, it will broken my builds.
>>> See: http://qt-project.org/wiki/jom
>>>
>>> Am I lost some option? does there exist an valid way?
>>> or, It's just a bug from CMake self?
>>> Thanks a lot!
>>>
>>> --
>>> Best Regards
>>> Yuchen
>>>
>>>
>>>
>>> --
>>>
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/**opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the CMake FAQ at:
>>> http://www.cmake.org/Wiki/**CMake_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.cmake.org/mailman/**listinfo/cmake
>>>
>>>
>>
>>
>
> --
> Bill Hoffman
> Kitware, Inc.
> 28 Corporate Drive
> Clifton Park, NY 12065
> bill.hoff...@kitware.com
> http://www.kitware.com
> 518 881-4905 (Direct)
> 518 371-3971 x105
> Fax (518) 371-4573
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/**CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake
>



-- 
Best Regards
Yuchen
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] 'NMake Makefiles' generate does not support parallel builds (/MP)?

2012-09-20 Thread Loaden
Hello,Andreas!
Thanks for your comments. I am working in command line, use nmake.
So In here does not exist any Visual IDE stuff.

2012/9/20 Andreas Haferburg 

> Hi Yuchen,
>
> we're using the same way to enable /MP, and it works for us. You didn't
> say exactly what doesn't work, so I'm left to guessing.
>
> Have you checked in Visual Studio if the flag is set (Project
> properties->C/C++->Command Line)? Maybe there's a conflicting option
> enabled? Or maybe you're changing the CMAKE_CXX_FLAGS variable too late,
> e.g. after calling add_executable()?
>
> Have you checked the value in Tools->Options->Projects and Solutions->VC++
> Project Settings->Maximum ...
>
> Best regards,
> Andreas
>
>
>
> On 20.09.2012 10:45, Loaden wrote:
>
>> Hi, there!
>> I am using Windows SDK 7.1 + nmake + CMake for building Windows
>> applications.
>> Follow these:
>> http://www.cmake.org/**pipermail/cmake/2009-April/**028668.html
>> http://msdn.microsoft.com/en-**us/library/bb385193.aspx
>> I can't make /MP option works after this change in CMake's main
>> CMakeLists.txt
>>
>> if (MSVC)
>>SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
>>SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
>>message(STATUS "CMAKE_CXX_FLAGS = ${CMAKE_CXX_FLAGS}")
>>message(STATUS "CMAKE_C_FLAGS = ${CMAKE_C_FLAGS}")
>> endif()
>>
>>
>> I know Jom which is a good choice for speed up compilation, but some
>> times, it will broken my builds.
>> See: http://qt-project.org/wiki/jom
>>
>> Am I lost some option? does there exist an valid way?
>> or, It's just a bug from CMake self?
>> Thanks a lot!
>>
>> --
>> Best Regards
>> Yuchen
>>
>>
>>
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/**
>> opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/**CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/**listinfo/cmake
>>
>>
>
> --
> Scopis GmbH
> Blücherstr. 22
> 10961 Berlin
> Germany
>
> E-Mail: ahaferb...@scopis.com
> Tel.: +49 (30) 39 82 05 98
> Fax.: +49 (30) 39 82 05 99
> Internet: www.scopis.com
>
> HRB 128315 Berlin Charlottenburg
> USt-IdNr.: DE272721463
> Steuernummer: 29/014/02034
> Geschäftsführer:  Bartosz Kosmecki
>
> Diese E-mail, einschließlich der Anhänge, ist ausschließlich für den oben
> genannten Adressaten bestimmt und beinhaltet vertrauliche und/oder
> gesetzlich geschützte Informationen. Jedem anderen Empfänger ist die
> Vervielfältigung, Weitergabe oder Veröffentlichung untersagt. Falls Sie
> diese Mitteilung irrtümlicherweise erhalten haben, bitten wir um sofortige
> Information an den Absender und Vernichtung der E-mail.
>
> This e-mail, including the attachments, is for the exclusive use of the
> above-named addresses and contains confidential information and/or
> information protected by law. Any other recipient is prohibited from
> duplicating, passing on to third parties, or publishing this information.
> If by error you are the recipient of this communication please inform the
> sender immediately and permanently delete this e-mail.
>



-- 
Best Regards
Yuchen
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake and OS X compiler tools without SDK

2012-09-20 Thread Sean McBride
On Thu, 20 Sep 2012 16:16:19 -0600, David Gobbi said:

>> You sure?  I'm pretty sure the 4.4 command line tools didn't need
>Xcode.app either.
>
>Could be.  I'm still using XCode 3.2 on my own box.  It's the people
>working under me who are using newer versions.

A! :)  I think it's been this way since even before 4.4 actually.

>This is with cmake 2.8.9, so the latest version.  What do you mean by ToT?

Top of Tree.  As in: newest from source control.

>It could very well be that the person that I was helping with
>this problem set some variables when I was elsewhere...

Could be, but there was some Xcode related issue I had just recently that's 
still in 2.8.9 but fixed in ToT/2.8.10.

Cheers,

-- 

Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com 
Mac Software Developer  Montréal, Québec, Canada


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake and OS X compiler tools without SDK

2012-09-20 Thread David Gobbi
On Thu, Sep 20, 2012 at 2:55 PM, Sean McBride  wrote:
> On Thu, 20 Sep 2012 14:26:54 -0600, David Gobbi said:
>
>>Hi All,
>>
>>Just yesterday, Apple released new "Command Line Tools for XCode 4.5".
>> Unlike their previous command-line compiler tools, these new tools no
>>longer require XCode.  They are stand-alone.
>
> You sure?  I'm pretty sure the 4.4 command line tools didn't need Xcode.app 
> either.

Could be.  I'm still using XCode 3.2 on my own box.  It's the people
working under me who are using newer versions.

>>However, there is a caveat.  CMake is looking for (and not finding) an
>>XCode SDK.
>>
>>When I configure VTK, for example, cmake sets this:
>>
>>CMAKE_OSX_SYSROOT:PATH=/Developer/SDKs/MacOSX10.7.sdk
>
> Odd.  For several Xcode releases now, /Developer is gone, and CMake was 
> updated fro this change already.  Which CMake are you using? You might try 
> with ToT.

This is with cmake 2.8.9, so the latest version.  What do you mean by ToT?

It could very well be that the person that I was helping with
this problem set some variables when I was elsewhere...
I should avoid reporting second-hand info to the list.

 - David
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Errors in Info.plist of Mac GUI app for CMake 2.8.9

2012-09-20 Thread James Walker

On 9/20/2012 12:38 PM, Sean McBride wrote:

On Thu, 20 Sep 2012 11:36:53 -0700, James Walker said:


The Info.plist for CMake 2.8-9.app has an empty string for CFBundleName,
making it show up without a name in utilities such as Activity Monitor.
  It's also bad that there is an empty string for CFBundleIdentifier,
CFBundleVersion, CFBundleShortVersionString, CFBundleGetInfoString, and
NSHumanReadableCopyright.


See:


and sorta related:


Cheers,



OK, I was unaware of a bug tracker.  I've added a note about CFBundleName.

--
  James W. Walker, Innoventive Software LLC
  
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Errors in Info.plist of Mac GUI app for CMake 2.8.9

2012-09-20 Thread Sean McBride
On Thu, 20 Sep 2012 16:40:20 -0400, Michael Jackson said:

>I use the following macro in my own projects:

Perhaps you are in a position to make a patch to fix CMake.app itself? :)

Cheers,

-- 

Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com 
Mac Software Developer  Montréal, Québec, Canada


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake and OS X compiler tools without SDK

2012-09-20 Thread Sean McBride
On Thu, 20 Sep 2012 14:26:54 -0600, David Gobbi said:

>Hi All,
>
>Just yesterday, Apple released new "Command Line Tools for XCode 4.5".
> Unlike their previous command-line compiler tools, these new tools no
>longer require XCode.  They are stand-alone.

You sure?  I'm pretty sure the 4.4 command line tools didn't need Xcode.app 
either.

>However, there is a caveat.  CMake is looking for (and not finding) an
>XCode SDK.
>
>When I configure VTK, for example, cmake sets this:
>
>CMAKE_OSX_SYSROOT:PATH=/Developer/SDKs/MacOSX10.7.sdk

Odd.  For several Xcode releases now, /Developer is gone, and CMake was updated 
fro this change already.  Which CMake are you using?  You might try with ToT.

Cheers,

-- 

Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com 
Mac Software Developer  Montréal, Québec, Canada


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake and OS X compiler tools without SDK

2012-09-20 Thread Michael Jackson

On Sep 20, 2012, at 4:26 PM, David Gobbi wrote:

> Hi All,
> 
> Just yesterday, Apple released new "Command Line Tools for XCode 4.5".
> Unlike their previous command-line compiler tools, these new tools no
> longer require XCode.  They are stand-alone.  This is great, because
> the package is just 110MB (compared to 1560MB for XCode).
> 
> However, there is a caveat.  CMake is looking for (and not finding) an
> XCode SDK.
> 
> When I configure VTK, for example, cmake sets this:
> 
> CMAKE_OSX_SYSROOT:PATH=/Developer/SDKs/MacOSX10.7.sdk
> 
> But in order for my compile to succeed, I have to change it to this:
> 
> CMAKE_OSX_SYSROOT:PATH=/
> 
> So I'm wondering if CMake should start using "/" as the default
> setting, or perhaps not use -isysroot at all unless an SDK has been
> explicitly selected.
> 
> - David
> --


CMake should probably actually look to verify that path does exist, then 
fallback to something else most likely dependent on the version of OS X being 
used? This could get ugly quickly.

___
Mike JacksonPrincipal Software Engineer
BlueQuartz SoftwareDayton, Ohio
mike.jack...@bluequartz.net  www.bluequartz.net

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Errors in Info.plist of Mac GUI app for CMake 2.8.9

2012-09-20 Thread Michael Jackson
I use the following macro in my own projects:

#---
# This macro will set all the variables necessary to have a "good" OS X 
Application
# bundle. The variables are as follows:
#  PROJECT_NAME - which can be taken from the ${PROJECT_NAME} variable is needed
#  DEBUG_EXTENSION - The extension used to denote a debug built Application. 
Typically
#   this is '_debug'
#  ICON_FILE_PATH - The complete path to the bundle icon file
#  VERSION_STRING - The version string that you wish to use for the bundle. For 
OS X
#   this string is usually .YY.ZZ in type. Look at the Apple docs for more 
info
#---
macro(ConfigureMacOSXBundlePlist TARGET_NAME DEBUG_EXTENSION ICON_FILE_PATH 
VERSION_STRING)
  # message(STATUS "ConfigureMacOSXBundlePlist for ${PROJECT_NAME} ")
  IF(CMAKE_BUILD_TYPE MATCHES "Release")
SET(DBG_EXTENSION "")
  else()
set(DBG_EXTENSION ${DEBUG_EXTENSION})
  endif()
  get_filename_component(ICON_FILE_NAME "${ICON_FILE_PATH}" NAME)

 set_target_properties(${TARGET_NAME} PROPERTIES
 MACOSX_BUNDLE_INFO_STRING "${PROJECT_NAME}${DBG_EXTENSION} Version 
${VERSION_STRING}, Copyright 2009 BlueQuartz Software."
 MACOSX_BUNDLE_ICON_FILE ${ICON_FILE_NAME}
 MACOSX_BUNDLE_GUI_IDENTIFIER "${PROJECT_NAME}${DBG_EXTENSION}"
 MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_NAME}${DBG_EXTENSION} Version 
${VERSION_STRING}"
 MACOSX_BUNDLE_BUNDLE_NAME ${PROJECT_NAME}${DBG_EXTENSION}
 MACOSX_BUNDLE_SHORT_VERSION_STRING ${VERSION_STRING}
 MACOSX_BUNDLE_BUNDLE_VERSION ${VERSION_STRING}
 MACOSX_BUNDLE_COPYRIGHT "Copyright 2011, BlueQuartz Software. All Rights 
Reserved."
 )
 
 SET(${PROJECT_NAME}_PROJECT_SRCS ${${PROJECT_NAME}_PROJECT_SRCS} 
${ICON_FILE_PATH})
 SET_SOURCE_FILES_PROPERTIES(${ICON_FILE_PATH} PROPERTIES
 MACOSX_PACKAGE_LOCATION Resources)  
endmacro()


Use/Abuse/Change to your hearts delight.
___
Mike JacksonPrincipal Software Engineer
BlueQuartz SoftwareDayton, Ohio
mike.jack...@bluequartz.net  www.bluequartz.net

On Sep 20, 2012, at 3:38 PM, Sean McBride wrote:

> On Thu, 20 Sep 2012 11:36:53 -0700, James Walker said:
> 
>> The Info.plist for CMake 2.8-9.app has an empty string for CFBundleName, 
>> making it show up without a name in utilities such as Activity Monitor. 
>> It's also bad that there is an empty string for CFBundleIdentifier, 
>> CFBundleVersion, CFBundleShortVersionString, CFBundleGetInfoString, and 
>> NSHumanReadableCopyright.
> 
> See:
> 
> 
> and sorta related:
> 
> 
> Cheers,
> 
> -- 
> 
> Sean McBride, B. Eng s...@rogue-research.com
> Rogue Researchwww.rogue-research.com 
> Mac Software Developer  Montréal, Québec, Canada
> 
> 
> --
> 
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CMake and OS X compiler tools without SDK

2012-09-20 Thread David Gobbi
Hi All,

Just yesterday, Apple released new "Command Line Tools for XCode 4.5".
 Unlike their previous command-line compiler tools, these new tools no
longer require XCode.  They are stand-alone.  This is great, because
the package is just 110MB (compared to 1560MB for XCode).

However, there is a caveat.  CMake is looking for (and not finding) an
XCode SDK.

When I configure VTK, for example, cmake sets this:

CMAKE_OSX_SYSROOT:PATH=/Developer/SDKs/MacOSX10.7.sdk

But in order for my compile to succeed, I have to change it to this:

CMAKE_OSX_SYSROOT:PATH=/

So I'm wondering if CMake should start using "/" as the default
setting, or perhaps not use -isysroot at all unless an SDK has been
explicitly selected.

 - David
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Errors in Info.plist of Mac GUI app for CMake 2.8.9

2012-09-20 Thread Sean McBride
On Thu, 20 Sep 2012 11:36:53 -0700, James Walker said:

>The Info.plist for CMake 2.8-9.app has an empty string for CFBundleName, 
>making it show up without a name in utilities such as Activity Monitor. 
>  It's also bad that there is an empty string for CFBundleIdentifier, 
>CFBundleVersion, CFBundleShortVersionString, CFBundleGetInfoString, and 
>NSHumanReadableCopyright.

See:


and sorta related:


Cheers,

-- 

Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com 
Mac Software Developer  Montréal, Québec, Canada


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Errors in Info.plist of Mac GUI app for CMake 2.8.9

2012-09-20 Thread James Walker
The Info.plist for CMake 2.8-9.app has an empty string for CFBundleName, 
making it show up without a name in utilities such as Activity Monitor. 
 It's also bad that there is an empty string for CFBundleIdentifier, 
CFBundleVersion, CFBundleShortVersionString, CFBundleGetInfoString, and 
NSHumanReadableCopyright.

--
  James W. Walker, Innoventive Software LLC
  
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] -lrt finder

2012-09-20 Thread Davis Ford
I'm building for Raspberry Pi - which is embedded Linux on Arm, distro
is Debian-based.

I'm getting this linker error:

libzmq.a(libzmq_la-clock.o): In function `zmq::clock_t::now_us()':
/home/pi/git/libzmq/src/clock.cpp:76: undefined reference to `clock_gettime'

I believe I need to add "-lrt", I tried to look through the list of
Finder modules, but I can't seem to identify the right one -- if one
exists.  What is the correct way to solve this?
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] A way to set default compiler, etc.?

2012-09-20 Thread Rolf Eike Beer
Alexander Neundorf wrote:
> On Thursday 20 September 2012, Rolf Eike Beer wrote:
> > Am 2012-09-20 15:10, schrieb Dave Abrahams:
> > > When I invoke cmake for the first time in a project, I normally use
> > > 
> > >  -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
> > > 
> > > I'm tired of typing that every time I blow away my CMakeCache.txt.
> > > Is
> > > there a place I can register these preferences so I don't have to?
> > 
> > Don't fiddle with that variables. Ever. CMake will set them during
> > toolchain discovery and messing around with them may cause every type of
> > havoc if you are unlucky.
> 
> doing this on the initial cmake run is fine, it is equivalent to setting the
> CC/CXX environment variables. This is also what is doing when
> crosscompiling, those two variables have to be preset.

Sure, but don't tell them ;) It should only be done from within a toolchain 
file.

Eike
-- 

signature.asc
Description: This is a digitally signed message part.
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Visual Studio 2012 Express for WD and cmake 2.8.9

2012-09-20 Thread Glenn Coombs
Thanks for that - I will try it again with the 2.8.10 release candidate.

--
Glenn


On 18 September 2012 22:17, David Cole  wrote:

> On Mon, Sep 17, 2012 at 1:02 PM, Glenn Coombs wrote:
>
>> Hi,
>>
>> I just installed the Visual Studio 2012 Express edition for Windows
>> Desktop and cmake 2.8.9 is having some issues with it.  Initially when I
>> ran the cmake configure step it failed to find the devenv or msbuild
>> program:
>>
>> CMake was unable to find a build program corresponding to "Visual Studio
>> 11". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different
>> build tool.
>>
>> I then edited the CMakeVS11FindMake.cmake file to tell it to use the same
>> MSBuild that the VS2012 command prompt uses
>> (C:/Windows/Microsoft.NET/Framework/v4.0.30319):
>>
>> IF(NOT CMAKE_CROSSCOMPILING)
>>   FIND_PROGRAM(CMAKE_MAKE_PROGRAM
>> NAMES MSBuild
>> HINTS
>>
>> [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0\\Setup\\VS;ProductDir]
>>
>> [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\WDExpress\\11.0\\Setup\\VS;ProductDir]
>>
>> "$ENV{SYSTEMROOT}/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0;CLR
>> Version]/"
>>
>> "c:/WINDOWS/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0;CLR
>> Version]/"
>>
>> "$ENV{SYSTEMROOT}/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VCExpress\\11.0;CLR
>> Version]/"
>> "C:/Windows/Microsoft.NET/Framework/v4.0.30319"
>> )
>> ENDIF()
>>
>> and that gets me a bit further.  The error message is now:
>>
>> Check for working C compiler using: Visual Studio 11
>>
>> Check for working C compiler using: Visual Studio 11 -- works
>>
>> Detecting C compiler ABI info
>>
>> CMake Error at C:/Program Files (x86)/CMake
>> 2.8.9/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31
>> (TRY_COMPILE):
>>
>> Cannot copy output executable
>>
>> ''
>>
>> to destination specified by COPY_FILE:
>>
>>
>> 'C:/data/perforceCheckouts/sim/vxe/diamond/DEV/glenn.coombs/cmake/CMakeFiles/CMakeDetermineCompilerABI_C.bin'
>>
>> Unable to find the executable at any of:
>>
>>
>> C:/data/perforceCheckouts/sim/vxe/diamond/DEV/glenn.coombs/cmake/CMakeFiles/CMakeTmp/cmTryCompileExec66551527.exe
>>
>>
>> C:/data/perforceCheckouts/sim/vxe/diamond/DEV/glenn.coombs/cmake/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec66551527.exe
>>
>>
>> C:/data/perforceCheckouts/sim/vxe/diamond/DEV/glenn.coombs/cmake/CMakeFiles/CMakeTmp/Development/cmTryCompileExec66551527.exe
>>
>> Call Stack (most recent call first):
>>
>> C:/Program Files (x86)/CMake
>> 2.8.9/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:71
>> (CMAKE_DETERMINE_COMPILER_ABI)
>>
>> CMakeLists.txt:3 (project)
>>
>> Is it possible to hack an existing cmake 2.8.9 install to work with
>> VS2012 Express or am I going to have to wait for cmake 2.8.10 ?
>>
>> --
>> Glenn
>>
>>
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>>
>
>
> You will need a new build of CMake to fix this problem.
>
> Brad just merged some changes to our 'next' branch today to address this
> issue.
>
> If you can build CMake from source, you can try it out right now if you
> checkout the 'next' branch and build it.
>
> If not, you could wait till tomorrow morning, and there will hopefully be
> a nightly build available that you can download and try.
>
> Or, if it's not urgent, and you can wait till next week: we have
> tentatively scheduled our first release candidate for CMake 2.8.10 for next
> Wednesday, 9/26/2012.
>
>
> HTH,
> David
>
>
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] 'NMake Makefiles' generate does not support parallel builds (/MP)?

2012-09-20 Thread Bill Hoffman

nmake does not do parallel builds.  Try using jom.

http://blog.qt.digia.com/2009/03/27/speeding-up-visual-c-qt-builds/
http://qt-project.org/wiki/jom


/MP only works from the VS IDE.


On 9/20/2012 11:34 AM, Andreas Haferburg wrote:

Hi Yuchen,

we're using the same way to enable /MP, and it works for us. You didn't
say exactly what doesn't work, so I'm left to guessing.

Have you checked in Visual Studio if the flag is set (Project
properties->C/C++->Command Line)? Maybe there's a conflicting option
enabled? Or maybe you're changing the CMAKE_CXX_FLAGS variable too late,
e.g. after calling add_executable()?

Have you checked the value in Tools->Options->Projects and
Solutions->VC++ Project Settings->Maximum ...

Best regards,
Andreas


On 20.09.2012 10:45, Loaden wrote:

Hi, there!
I am using Windows SDK 7.1 + nmake + CMake for building Windows
applications.
Follow these:
http://www.cmake.org/pipermail/cmake/2009-April/028668.html
http://msdn.microsoft.com/en-us/library/bb385193.aspx
I can't make /MP option works after this change in CMake's main
CMakeLists.txt

if (MSVC)
   SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
   SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
   message(STATUS "CMAKE_CXX_FLAGS = ${CMAKE_CXX_FLAGS}")
   message(STATUS "CMAKE_C_FLAGS = ${CMAKE_C_FLAGS}")
endif()


I know Jom which is a good choice for speed up compilation, but some
times, it will broken my builds.
See: http://qt-project.org/wiki/jom

Am I lost some option? does there exist an valid way?
or, It's just a bug from CMake self?
Thanks a lot!

--
Best Regards
Yuchen



--

Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake







--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoff...@kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] A way to set default compiler, etc.?

2012-09-20 Thread Alexander Neundorf
On Thursday 20 September 2012, Rolf Eike Beer wrote:
> Am 2012-09-20 15:10, schrieb Dave Abrahams:
> > When I invoke cmake for the first time in a project, I normally use
> > 
> >  -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
> > 
> > I'm tired of typing that every time I blow away my CMakeCache.txt.
> > Is
> > there a place I can register these preferences so I don't have to?
> 
> Don't fiddle with that variables. Ever. CMake will set them during
> toolchain discovery and messing around with them may cause every type of
> havoc if you are unlucky.

doing this on the initial cmake run is fine, it is equivalent to setting the 
CC/CXX environment variables. This is also what is doing when crosscompiling, 
those two variables have to be preset.
 
> export CC=clang
> export CXX=clang++


Yes.

Alex
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] A way to set default compiler, etc.?

2012-09-20 Thread Alexander Neundorf
On Thursday 20 September 2012, Rui Maciel wrote:
> On 09/20/2012 02:10 PM, Dave Abrahams wrote:
> > When I invoke cmake for the first time in a project, I normally use
> > 
> >   -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
> > 
> > I'm tired of typing that every time I blow away my CMakeCache.txt.  Is
> > there a place I can register these preferences so I don't have to?
> 
> Have you tried adding CMAKE_FORCE_C_COMPILER() AND
> CMAKE_FORCE_CXX_COMPILER() macros to your CMakeLists.txt ?
> 
> http://www.cmake.org/cmake/help/v2.8.8/cmake.html#module:CMakeForceCompiler

Don't do that, this is only for very rare cases if you really know what you 
are doing.

Alex
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] 'NMake Makefiles' generate does not support parallel builds (/MP)?

2012-09-20 Thread Andreas Haferburg

Hi Yuchen,

we're using the same way to enable /MP, and it works for us. You didn't say exactly what doesn't 
work, so I'm left to guessing.


Have you checked in Visual Studio if the flag is set (Project properties->C/C++->Command Line)? 
Maybe there's a conflicting option enabled? Or maybe you're changing the CMAKE_CXX_FLAGS variable 
too late, e.g. after calling add_executable()?


Have you checked the value in Tools->Options->Projects and Solutions->VC++ Project Settings->Maximum 
...


Best regards,
Andreas


On 20.09.2012 10:45, Loaden wrote:

Hi, there!
I am using Windows SDK 7.1 + nmake + CMake for building Windows applications.
Follow these:
http://www.cmake.org/pipermail/cmake/2009-April/028668.html
http://msdn.microsoft.com/en-us/library/bb385193.aspx
I can't make /MP option works after this change in CMake's main CMakeLists.txt

if (MSVC)
   SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
   SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
   message(STATUS "CMAKE_CXX_FLAGS = ${CMAKE_CXX_FLAGS}")
   message(STATUS "CMAKE_C_FLAGS = ${CMAKE_C_FLAGS}")
endif()


I know Jom which is a good choice for speed up compilation, but some times, it 
will broken my builds.
See: http://qt-project.org/wiki/jom

Am I lost some option? does there exist an valid way?
or, It's just a bug from CMake self?
Thanks a lot!

--
Best Regards
Yuchen



--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake




--
Scopis GmbH
Blücherstr. 22
10961 Berlin
Germany

E-Mail: ahaferb...@scopis.com
Tel.: +49 (30) 39 82 05 98
Fax.: +49 (30) 39 82 05 99
Internet: www.scopis.com

HRB 128315 Berlin Charlottenburg
USt-IdNr.: DE272721463
Steuernummer: 29/014/02034
Geschäftsführer:  Bartosz Kosmecki

Diese E-mail, einschließlich der Anhänge, ist ausschließlich für den oben genannten Adressaten 
bestimmt und beinhaltet vertrauliche und/oder gesetzlich geschützte Informationen. Jedem anderen 
Empfänger ist die Vervielfältigung, Weitergabe oder Veröffentlichung untersagt. Falls Sie diese 
Mitteilung irrtümlicherweise erhalten haben, bitten wir um sofortige Information an den Absender und 
Vernichtung der E-mail.


This e-mail, including the attachments, is for the exclusive use of the above-named addresses and 
contains confidential information and/or information protected by law. Any other recipient is 
prohibited from duplicating, passing on to third parties, or publishing this information. If by 
error you are the recipient of this communication please inform the sender immediately and 
permanently delete this e-mail.

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Problems finding dependence library

2012-09-20 Thread Bogdan Cristea
On Thursday 20 September 2012 17:25:35 Reza Housseini wrote:
> set(CPPLIB_DIR "${CMAKE_SOURCE_DIR}/../core/build")
> find_library(CPPLIB_SIEVE_LIBRARY NAMES libsieve PATHS CPPLIB_DIR)

Use instead sieve for your library name. Also, check with 
message(${CPPLIB_DIR})
the path to your library

-- 
Bogdan
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Problems finding dependence library

2012-09-20 Thread Reza Housseini
Hello list

I have a problem finding a dependent library of my own libsieve.so:

set(CPPLIB_DIR "${CMAKE_SOURCE_DIR}/../core/build")
find_library(CPPLIB_SIEVE_LIBRARY NAMES libsieve PATHS CPPLIB_DIR)

I have the following folder structure:

core
  build
libsieve.so
project
  CMakeLists.txt

It fails to find the file, what am I doing wrong? I also tried to
write my own FindLibSieve.cmake:

include(LibFindMacros)

# Use pkg-config to get hints about paths
libfind_pkg_check_modules(LIBSIEVE_PKGCONF libsieve.so)

# Include dir
find_path(LIBSIEVE_INCLUDE_DIR
  NAMES Sieve.h
  PATHS ${LIBSIEVE_PKGCONF_INCLUDE_DIRS}
)

# Finally the library itself
find_library(LIBSIEVE_LIBRARY
  NAMES libsieve Sieve libsieve.dll.a
  PATHS ${LIBSIEVE_PKGCONF_LIBRARY_DIRS}
)

# Set the include dir variables and the libraries and let
libfind_process do the rest.
# NOTE: Singular variables for this library, plural for libraries this
this lib depends on.
set(LIBSIEVE_PROCESS_INCLUDES LIBSIEVE_INCLUDE_DIR)
set(LIBSIEVE_PROCESS_LIBS LIBSIEVE_LIBRARY)
libfind_process(LIBSIEVE)

Als no success.
Thanks for any input!
Reza
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] A way to set default compiler, etc.?

2012-09-20 Thread Rolf Eike Beer

Am 2012-09-20 15:10, schrieb Dave Abrahams:

When I invoke cmake for the first time in a project, I normally use

 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++

I'm tired of typing that every time I blow away my CMakeCache.txt.  
Is

there a place I can register these preferences so I don't have to?


Don't fiddle with that variables. Ever. CMake will set them during 
toolchain discovery and messing around with them may cause every type of 
havoc if you are unlucky.


export CC=clang
export CXX=clang++

Eike
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] A way to set default compiler, etc.?

2012-09-20 Thread Rui Maciel

On 09/20/2012 02:10 PM, Dave Abrahams wrote:

When I invoke cmake for the first time in a project, I normally use

  -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++

I'm tired of typing that every time I blow away my CMakeCache.txt.  Is
there a place I can register these preferences so I don't have to?


Have you tried adding CMAKE_FORCE_C_COMPILER() AND 
CMAKE_FORCE_CXX_COMPILER() macros to your CMakeLists.txt ?


http://www.cmake.org/cmake/help/v2.8.8/cmake.html#module:CMakeForceCompiler


Hope this helps,
Rui Maciel
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] A way to set default compiler, etc.?

2012-09-20 Thread Sergei Nikulov
2012/9/20 Dave Abrahams :
>
> When I invoke cmake for the first time in a project, I normally use
>
>  -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
>
> I'm tired of typing that every time I blow away my CMakeCache.txt.  Is
> there a place I can register these preferences so I don't have to?
>

How about?

alias cmake="cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"

-- 
Best Regards,
Sergey Nikulov
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] A way to set default compiler, etc.?

2012-09-20 Thread Dave Abrahams

When I invoke cmake for the first time in a project, I normally use

 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++

I'm tired of typing that every time I blow away my CMakeCache.txt.  Is
there a place I can register these preferences so I don't have to?

Thanks,

-- 
Dave Abrahams
BoostPro Computing  Software DevelopmentTraining
http://www.boostpro.com Clang/LLVM/EDG Compilers  C++  Boost


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-20 Thread Peter Kümmel

On 19.09.2012 08:08, Wouter van Kleunen wrote:


Peter,

i had 2.8.9-pre3 before, i upgraded to 2.8.9. But only after deleting
the CMakeLists user file from qtcreator, deleting the build directory
and restarting qtcreator I was able to get the option to build with Ninja.

Anyway, it seems to work fine now, and the building is much faster.


I've uploaded a new version:

- Now out-of-source project files are supported (for cmake projects).
  There will be two new files in the build folder CMake.qtcreator and 
CMakeLists.txt.user
  CMake.qtcreator should be opened with creator.

- out-of-source is default, could be changed by a check box in the wizard

- shipped ninja.exe (>1.0.0) is found automatically

- generators are updated when cmake is selected in the wizard

- a cmake warning about QT_QMAKE_EXECUTABLE could be suppressed when the 
project doesn't use Qt

Peter




Wouter


Op 18-9-2012 22:50, Peter Kümmel schreef:

Hi Wouter,

you need the latest cmake version, 2.8.9.

Under Tools/Options/Build&Run/CMake
the ninja binary could be set, or have it PATH.

Peter

On 18.09.2012 22:29, Wouter van Kleunen wrote:


So how do you make it to use ninja ? Should I enable ninja somewhere ?
Because when I run cmake from the gui it now still generates nmakefiles.

Wouter

Op 17-9-2012 18:08, Peter Kümmel schreef:

Qt Creator 2.6 is beta now.

On github I've uploaded a patched version with Ninja support for CMake
based projects:

  https://github.com/syntheticpp/qt-creator/downloads

When CDB is installed

http://doc-snapshot.qt-project.org/qtcreator-2.5/creator-debugger-engines.html#supported-cdb-versions


debugging works even with the 32bit/64bit compilers of Visual Studio
Express 2012.


Currently I'm trying to bring the patches upstream, but for 2.6 it
seems too late.

Peter
--

Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake







--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] 'NMake Makefiles' generate does not support parallel builds (/MP)?

2012-09-20 Thread Loaden
Hi, there!
I am using Windows SDK 7.1 + nmake + CMake for building Windows
applications.
Follow these:
http://www.cmake.org/pipermail/cmake/2009-April/028668.html
http://msdn.microsoft.com/en-us/library/bb385193.aspx
I can't make /MP option works after this change in CMake's main
CMakeLists.txt

> if (MSVC)
>   SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
>   SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
>   message(STATUS "CMAKE_CXX_FLAGS = ${CMAKE_CXX_FLAGS}")
>   message(STATUS "CMAKE_C_FLAGS = ${CMAKE_C_FLAGS}")
> endif()
>

I know Jom which is a good choice for speed up compilation, but some times,
it will broken my builds.
See: http://qt-project.org/wiki/jom

Am I lost some option? does there exist an valid way?
or, It's just a bug from CMake self?
Thanks a lot!

-- 
Best Regards
Yuchen
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] CMAKE_C_COMPILER_VERSION

2012-09-20 Thread Micha Renner
Is the intention of CMAKE_[C|CXX]_COMPILER_VERSION to check the [C|C
++]-compiler version platform independent?

Greetings

Micha


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake