[CMake] Change the linker and archiver for cmake?

2015-12-18 Thread digitalriptide
Hello, How does one select the linker and archiver for use with cmake? I can change my C compiler by doing this 'CC=icc cmake ..', but I would also like to use the Intel archiver and linker (xiar and xild). Thank you for the advices. -- Powered by www.kitware.com Please keep messages on-topic

Re: [CMake] target_include_directories SYSTEM adds -isystem to Clang, but not GCC

2015-12-08 Thread digitalriptide
, 2015 at 8:28 AM, Gregor Jasny <gja...@googlemail.com> wrote: > On 15/11/15 21:13, digitalriptide wrote: > >> Did this fix make it into 3.4? After upgrading to 3.4, GCC still seems >> to lack -isystem flags on OS X. Is there anything extra I need to do? >> > >

Re: [CMake] target_include_directories SYSTEM adds -isystem to Clang, but not GCC

2015-11-15 Thread digitalriptide
Did this fix make it into 3.4? After upgrading to 3.4, GCC still seems to lack -isystem flags on OS X. Is there anything extra I need to do? Thank you!! On Thu, Aug 20, 2015 at 8:12 AM, Gregor Jasny <gja...@googlemail.com> wrote: > Hello, > > On 17/08/15 01:01, digitalriptide wro

[CMake] target_include_directories SYSTEM adds -isystem to Clang, but not GCC

2015-08-16 Thread digitalriptide
Dear CMake Community, When I add SYSTEM to target_include_directories, for example using target_include_directories( my_target SYSTEM PUBLIC ${MY_LIBRARIES} ) in Clang, CMake prepends -isystem to the relavent -I/my/library/path type flags. With GCC, however, I see no -isystem added. For

[CMake] FindPythonInterp.cmake and FindPythonLibs.cmake Modules Find Different Pythons

2015-07-27 Thread digitalriptide
When I execute FindPythonLibs.cmake and FindPythonInterp.cmake on the same system, they locate different Python installations. I am running OS X with cmake 3.2.3. FindPythonLibs picks up the system-provided python installation, while FindPythonInterp picks up the version of Python I installed

[CMake] Fortran and Ninja Support?

2015-07-25 Thread digitalriptide
Dear CMake Community, I recently tried to use the Ninja generator with a project that has Fortran source files, but CMake returned an error stating that Ninja and Fortran are not yet compatible with CMake. Is this feature planned for the future? Thank you kindly! -- Powered by www.kitware.com

[CMake] Changes to CMAKE_CXX_FLAGS_RELEASE not reflected in GUI

2015-07-22 Thread digitalriptide
Dear CMake Community, I would like to add an extra flag to CMAKE_CXX_FLAGS_RELEASE (-xHost for Intel compilers), so in my CMakeLists.txt I add: set( CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE} -xHost ) If I then run VERBOSE=1 make, I observe that the xHost flag is passed to the compiler.

Re: [CMake] Setting CXX_STANDARD 11 Enables GNU Extensions

2015-07-04 Thread digitalriptide
/prop_tgt/CXX_EXTENSIONS.html#prop_tgt:CXX_EXTENSIONS *From:* CMake [mailto:cmake-boun...@cmake.org] *On Behalf Of *Scott Aron Bloom *Sent:* Saturday, July 04, 2015 1:17 AM *To:* digitalriptide; cmake@cmake.org *Subject:* Re: [CMake] Setting CXX_STANDARD 11 Enables GNU Extensions

[CMake] Setting CXX_STANDARD 11 Enables GNU Extensions

2015-07-03 Thread digitalriptide
If I enable C++11 for some target via set_target_properties( SomeTarget PROPERTIES CXX_STANDARD 11 ) set_target_properties( SomeTarget PROPERTIES CXX_STANDARD_REQUIRED ON ) with GCC, the code will then compile with -std=gnu++11. Compiling with -std=gnu++11 enables C++11 *and* the GNU extensions.

[CMake] Enable C++11 for a Target with Intel

2015-04-06 Thread digitalriptide
With the GNU compilers I am able to enable C++11 for a specific target using: set_target_properties( my_target PROPERTIES CXX_STANDARD 11 ) set_target_properties( my_target PROPERTIES CXX_STANDARD_REQUIRED ON ) When I build, this adds the flag -std=gnu++11, which is great. If I compile with

[CMake] Intel Compilers and libc++?

2015-04-04 Thread digitalriptide
I have an Ubuntu installation with both libstdc++ and libc++ installed, and I am using Intel's C++ compiler. By default, CMake is picking up and linking against libstdc++. Is there a way to ask CMake to prefer libc++ over libstdc++, when available? Thank you kindly for your advice. -- Powered

[CMake] Pass on Unix Signals (ctrl+c)?

2014-10-23 Thread digitalriptide
I have a number of tests configured in my CMakeLists.txt file, a few of which need to do some cleanup after running or if they are interrupted If I run make tests, and then send a signal (via ctrl+c, for example), however, these signals are not passed on to the test. Is it possible to configure

[CMake] CMake, Xcode, and Intel Fortran?

2014-10-23 Thread digitalriptide
In the past I was able to generate Xcode projects that contained Fortran files via `cmake -gXcode ..` and CMake would pick up the Intel Fortran compiler. This behavior seems to have changed recently, however. Has anyone else experienced this problem and/or found a workaround? Is this is an issue

Re: [CMake] Pass on Unix Signals (ctrl+c)?

2014-10-23 Thread digitalriptide
Alternatively, what signal does CMake use to halt tests? Than you! On Thu, Oct 23, 2014 at 2:16 PM, digitalriptide digitalript...@gmail.com wrote: I have a number of tests configured in my CMakeLists.txt file, a few of which need to do some cleanup after running or if they are interrupted

[CMake] Color Output with Ninja?

2014-08-26 Thread digitalriptide
Is there a way to enable color compiler messages with the ninja generator? With make and clang, for example, the makefile generator is able to produce color output. Thank you for your assistance. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

[CMake] Same effect as g++ -bundle ?

2012-10-15 Thread digitalriptide
I need to create a Mach-o bundle format file. With g++, for example, I can do the following g++ -o helloWorld.bundle -bundle helloWorld.o given some object file. Is there some way to do this from cmake? I've looked at the documentation for add_library but I can't seem to find anything. Any