Re: [CMake] supported platforms by Cmake

2015-01-14 Thread Domen Vrankar
2015-01-15 1:25 GMT+01:00 David Thompson :
> Hi Bob,
>
> You can see what platforms CMake is tested on here:
>
>   https://open.cdash.org/index.php?project=CMake
>
> We just don't distribute binary packages on all of those platforms.
>
> David
>
>> On Jan 14, 2015, at 5:43 PM, Bob Mosleh Sadri  
>> wrote:
>>
>> Hi experts
>> We are planning to use a new build system for our c++ code.  We build for 
>> Windows, Linux, AIX, Solaris and HP.  I would like to know if cmake is a 
>> good option for us.   When I look at the cmake.org download page, I can see 
>> only support for Windows and Linux.  Where can I get downloads for the 
>> rest of platforms?  I was wondering if there is a good support for the rest 
>> of platforms.  Even if there are support for different platforms, are there 
>> supporting different versions of OS?
>> While investigating the build systems, Cmake seems to be very popular.  
>> However, I am wondering if it is a good choice for us, since we need to 
>> support all these 5 platforms.

I am using CMake on AIX as well - not on the testing list (don't know
why) but you can see the results if you click on "See full feed" on
the page linked by David.

Regards,
Domen
-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


[CMake] set(CMAKE_CXX_STANDARD 11) on macos - "...CMake does not know the compile flags to use to enable it."

2015-01-14 Thread Laurent Demailly
Hi all,

I have a very simple CMakeLists.txt – am using cmake 3.1 to be able to easily 
request C++ 11 – it works fine on ubuntu but not on MacOS with Xcode 6 and 
command line tools installed:

$ cat CMakeLists.txt
cmake_minimum_required(VERSION 3.1)

project("Test1" C CXX)

# We need C++ 11
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED on)

file(WRITE test1.cpp "int main(int argc, char** argv) {auto x=argc; return x;}")

add_executable(test1 test1.cpp)

$ cmake31 .
-- The C compiler identification is AppleClang 6.0.0.656
-- The CXX compiler identification is AppleClang 6.0.0.656
-- Check for working C compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Check for working CXX compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
CMake Error in CMakeLists.txt:
  Target "test1" requires the language dialect "CXX11" (with compiler
  extensions), but CMake does not know the compile flags to use to enable it.


This is with
CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
CXXFLAGS="-std=c++11"
But same without that


Any idea why Cmake complains and how to not make it complain ?


Help/pointer greatly appreciated

Thanks
Laurent


-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] supported platforms by Cmake

2015-01-14 Thread David Thompson
Hi Bob,

You can see what platforms CMake is tested on here:

  https://open.cdash.org/index.php?project=CMake

We just don't distribute binary packages on all of those platforms.

David

> On Jan 14, 2015, at 5:43 PM, Bob Mosleh Sadri  
> wrote:
> 
> Hi experts
> We are planning to use a new build system for our c++ code.  We build for 
> Windows, Linux, AIX, Solaris and HP.  I would like to know if cmake is a good 
> option for us.   When I look at the cmake.org download page, I can see only 
> support for Windows and Linux.  Where can I get downloads for the rest of 
> platforms?  I was wondering if there is a good support for the rest of 
> platforms.  Even if there are support for different platforms, are there 
> supporting different versions of OS?  
> While investigating the build systems, Cmake seems to be very popular.  
> However, I am wondering if it is a good choice for us, since we need to 
> support all these 5 platforms.
> 
> Please advice.
> Thanks
> Bob
> -- 
> 
> Bob Mosleh Sadri 
> 
> 
>  Oracle is committed to developing practices and 
> products that help protect the environment
> -- 
> 
> Powered by www.kitware.com
> 
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> Kitware offers various services to support the CMake community. For more 
> information on each offering, please visit:
> 
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
> 
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake

-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


[CMake] supported platforms by Cmake

2015-01-14 Thread Bob Mosleh Sadri

Hi experts
We are planning to use a new build system for our c++ code.  We build 
for Windows, Linux, AIX, Solaris and HP.  I would like to know if cmake 
is a good option for us.   When I look at the cmake.org download page, I 
can see only support for Windows and Linux.  Where can I get downloads 
for the rest of platforms?  I was wondering if there is a good support 
for the rest of platforms.  Even if there are support for different 
platforms, are there supporting different versions of OS?
While investigating the build systems, Cmake seems to be very popular.  
However, I am wondering if it is a good choice for us, since we need to 
support all these 5 platforms.


Please advice.
Thanks
Bob
--
Oracle 
Bob Mosleh Sadri


Green Oracle  Oracle is committed to 
developing practices and products that help protect the environment
-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] evaluate a generator experssion

2015-01-14 Thread Biddiscombe, John A.
Nils

Marvellous. Just what I needed. Works like a charm. and only 5 minutes between 
posting my question and getting the answer.

Many thanks indeed

JB



From: Nils Gladitz [mailto:nilsglad...@gmail.com]
Sent: 14 January 2015 13:17
To: Biddiscombe, John A.; cmake@cmake.org
Subject: Re: [CMake] evaluate a generator experssion

On 14.01.2015 13:11, Biddiscombe, John A. wrote:

file(WRITE "stuff containing above string")

the file is written with   
"$>" inside it, and not 
the full path/name of the target as I'd hoped.

Is there a way to force the evaluation of the generator expression so it is 
correctly written out into the launch script?


file(WRITE) is run at configuration time. Generator expressions are evaluated 
after configuration has finished (at generation time).
You can use file(GENERATE) to create files with generator expressions expanded 
at generation time.

Nils
-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] evaluate a generator experssion

2015-01-14 Thread Nils Gladitz

On 14.01.2015 13:11, Biddiscombe, John A. wrote:


file(WRITE “stuff containing above string”)

the file is written with   "$" inside it, 
and not the full path/name of the target as I’d hoped.


Is there a way to force the evaluation of the generator expression so 
it is correctly written out into the launch script?




file(WRITE) is run at configuration time. Generator expressions are 
evaluated after configuration has finished (at generation time).
You can use file(GENERATE) to create files with generator expressions 
expanded at generation time.


Nils
-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

[CMake] evaluate a generator experssion

2015-01-14 Thread Biddiscombe, John A.
Hello list

I've got some test scripts which are called with test names and such like and I 
am using cmake expansion of vars to get from this
  "$"
to
  "$"

which is correct. But unfortunately, when I use
file(WRITE "stuff containing above string")

the file is written with   "$" inside it, and not 
the full path/name of the target as I'd hoped.

Is there a way to force the evaluation of the generator expression so it is 
correctly written out into the launch script?

thanks

JB


--
John Biddiscombe,email:biddisco @.at.@ cscs.ch
http://www.cscs.ch/
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Trevano 131, 6900 Lugano, Switzerland   | Fax:  +41 (91) 610.82.82

-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] Include path perference

2015-01-14 Thread Marcel Loose

On 13/01/15 18:18, leemachine wrote:
> Hello all,
>
> I am using CMAKE 2.8.7:
>
> My question is I have a project that looks for dependencies (libraries and
> headers) in both the source tree (*CMAKE_SOURCE_DIR* and
> *CMAKE_CURRENT_SOURCE_DIR* as well as the *CMAKE_INSTALL_PREFIX*. The issue
> I am having is I'm making changes to the source tree that are not compatible
> with the header files installed in the *CMAKE_INSTALL_PREFIX*.
>
> In all the cmake message prints statements I make it returns the expected
> results. CMAKE is using .cc and .h files in the source tree even though the
> .h files are also in the *CMAKE_INSTALL_PREFIX*.
>
> When compiling I get an error relating to the incompatablity I mentioned.
> GCC is using the header files in the *CMAKE_INSTALL_PREFIX* and the .cc
> files in *CMAKE_CURRENT_SOURCE_DIR*
>
> How do I tell CMAKE to NOT use the header files in the
> *CMAKE_INSTALL_PREFIX*?
>
> I understand a fresh *CMAKE_INSTALL_PREFIX* would resolve this issue, but
> I'm looking for a workaround to that as well.
>
> Thanks,
>
> -Brandon
>
>
>
> --
> View this message in context: 
> http://cmake.3232098.n2.nabble.com/Include-path-perference-tp7589463.html
> Sent from the CMake mailing list archive at Nabble.com.
Hi Brandon,

I'm confused as to why you would want to look for dependencies in
CMAKE_INSTALL_PREFIX at all. The header files in there will (obviously)
always be (at least) one cycle behind with those in your source tree.

Cheers,
Marcel Loose.

<>-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake