Hi Florent,
thank you so much. EXCLUDE_FROM_ALL does indeed have the effect of
ignoring any install() invocations from within the subdirectory. I
remember stumbling across this option, but from the docs I didn't get
the impression that this would affect the installation as well.
Maybe the docu
On 02/16/2017 08:07 AM, Chuck Atkins wrote:
> That being said, I do think we should revisit the use of O3 by default
> given the safety issues surounding it.
The following is just my opinion:
In my experience if O3 fails it is a bug in the compiler, which should
be fixed and somebody has to find
On 2017-02-16 10:07-0500 Chuck Atkins wrote:
Hi YC,
cmake version on fedora 25: 3.6.2
Fedora is specifically patching CMake in the RPM spec file to reduce the
gcc flag from O3 to O2 so it's the distributuion's packaging making that
change, not CMake itself. If you download and build the s
Hi Soumaia,
Please keep conversations on the mailing list so others can benefit from it
as well. Also, I've moved this over to the CMake Users list at
cmake@cmake.org as it's a more appropriate place for this than that
developers list.
can you help me please how can i do this setup ?
>
All you
Thanks a lot for all these informations.
I wrote a macro to be sure to replace all the -O3 flags ...
# replace_ccxx_flag: replace compilation flags from the compiler command line
# flag_orig: the flag to be replace
# flag_dest: the new flag value
macro(replace_ccxx_flag flag_orig flag_dest)
str
Hi YC,
> cmake version on fedora 25: 3.6.2
>
Fedora is specifically patching CMake in the RPM spec file to reduce the
gcc flag from O3 to O2 so it's the distributuion's packaging making that
change, not CMake itself. If you download and build the source from
cmake.org then you'll get O3 as defa
Hi Adrian,
I'd suggest taking the issue up with the package maintainer. The upstream
source for CMake 3.7.2 configures, builds, and passes all tests on EL7 so
the problem seems to lie in how the RPM SPEC file is driving the build.
--
Chuck Atkins
Staff R&D Engineer, Scientific Computing
Use add_subdirectory(... EXCLUDE_FROM_ALL) to prevent anything in there to
be installed by default.
I had the issue in one project and it did fix it for us.
Also, 3rdparty libraries should be tagged like that anyway to be built only
when they are used by the main targets.
/Florent
On Feb 16, 20
Hi,
I am using the cpack variable CPACK_INSTALL_COMMANDS to run an extra
command. (First time I do this)
I have noticed that whenever the script command fails I get a log with the
output in (InstallOtput.log)
However when it runs correctly I have no log at all. I have tried to
redirect the output
cmake version on fedora 25: 3.6.2
And the corresponding lines in GNU.cmake (there are some differences):
# Initial configuration flags.
set(CMAKE_${lang}_FLAGS_INIT "")
set(CMAKE_${lang}_FLAGS_DEBUG_INIT "-g")
set(CMAKE_${lang}_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
set(CMAKE_${lang}_FLA
Hi,
On 16 February 2017 at 09:06, wrote:
> Hello,
>
> My question is related to CMAKE_*_FLAGS.
> I've got a project under linux fedora 24 and, in release mode, this project
> compiles with the -O2 flag.
> But when I switched to other platform (ubuntu, fedora 16 - I now this one is
> quite old
Hello,
My question is related to CMAKE_*_FLAGS.
I've got a project under linux fedora 24 and, in release mode, this project
compiles with the -O2 flag.
But when I switched to other platform (ubuntu, fedora 16 - I now this one is
quite old but I need to compile on this platform), this default opt
On 02/15/2017 09:04 PM, Chuck Atkins wrote:
Hi Adrian,
Hi! and thank you for looking into this problem!
So, would this imply that cmake is not supported on EL7 because gcc
does not support cxx11 ?
That's not really what's happening. CMake is testing the C compiler to
determine wheth
2017-02-16 7:59 GMT+01:00 Milan Ziegler :
> Hi,
>
> we are using the CMake install mechanism "install(...)" to copy all
> relevant files and target binaries of the product into the CMake install
> prefix folder, for further packaging. So far so good.
>
> We are also using several thirdparty librar
14 matches
Mail list logo