Re: [CMake] CMAKE_CXX_STANDARD_REQUIRED not working in helloworld

2017-03-07 Thread Winfried
Robert Maynard schreef op 07.03.2017 16:34: The issue is that GCC 4.8 c++1y does offer support for some c++14 features ( https://gcc.gnu.org/projects/cxx-status.html#cxx14 ) and therefore that is why you getting a compile time failure. You could try using target_compile_features instead but it on

[CMake] CMAKE_CXX_STANDARD_REQUIRED not working in helloworld

2017-03-07 Thread Winfried
ample below with g++ 4.8 (which has no C++14 support), cmake supplies the option -std=c++1y to g++ and compilation fails. I expected CMake to stop during configure with an error. Can anybody see what I am doing wrong ? Thanks in advance, Winfried file main.cpp : #include #include using name

[CMake] 'make package': Is setting generators to different default paths possible?

2016-03-10 Thread Winfried
JOR}") set(CPACK_PACKAGE_VERSION_MINOR "${TuxMinds_VERSION_MINOR}") set(CPACK_PACKAGE_VERSION_PATCH "${TuxMinds_VERSION_PATCH}") set(CPACK_PACKAGE_NAME"${P_NAME}") set(CPACK_PACKAGE_FILE_NAME "${P_NAME}-${CPACK_PACKAGE_VERSION

Re: [CMake] Howto install executables that aren't targets

2016-03-09 Thread Winfried
Eric Noulard wrote > 2016-03-09 19:50 GMT+01:00 Winfried < > winkus4u@ > >: > >> Yes, when using 'bin' instead of '/usr/bin' ( with PROGRAMS and without >> RUNTIME) it works. >> >> But nevertheless it's a bit sad because I use

Re: [CMake] Howto install executables that aren't targets

2016-03-09 Thread Winfried
with > makefiles the install step is run with "sudo" so that it can write to that > location. If you are doing an actual install to the system, then you have > to run it with sudo (or give you current user elevated permissions). > > -Caleb > > On Wed, Mar 9, 2016 a

Re: [CMake] Howto install executables that aren't targets

2016-03-09 Thread Winfried
Hi J Decker, sorry I've missed your answer, while I wrote mine. Now I used install( PROGRAMS ...instead of FILES but I can't see any difference in the output. The error message is exactly the same as in my last reply. To be sure that it is not a cache problem, I deleted the 'build' dir an

Re: [CMake] Howto install executables that aren't targets

2016-03-09 Thread Winfried
Hi Caleb, yes, I also suppose that it's some kind of permission issue, but I don't know how to handle it: All other install commands work exept those that should also copy to /usr/bin. I also tried to install those with another order, here is that code form subdirectory 'tools': install( FILES n

[CMake] Howto install executables that aren't targets

2016-03-09 Thread Winfried
"/opt/build/tuxminds_3.96_cmake/tools/tuxm_aar-04_make.sh" which does not exist in this directory. (The files are located in ${CMAKE_CURRENT_SOURCE_DIR} .) So, I would be glad, if someone could help me with this topic. Thanks in advance! Winfried -- View this message in context:

[CMake] CPack RPM: why not ---.rpm filename?

2009-12-30 Thread Winfried Dobbe
to /home/wdobbe/checkout/btbuild/buildtools-1.0.0-Linux.rpm CPack Error: Error when generating package: buildtools make: *** [package] Error 1 So even though I set the rpm output file name, CPack still looks for the "default" file name. Can somebody