Re: [CMake] Install without building unittests

2019-03-28 Thread Alexander Neundorf
On 2019 M03 28, Thu 18:22:03 CET Scott Bloom wrote: > Just a note, for google later on… 😊 > > The default appears to have the variable unset, so it doesn’t show up in the > list of variables in ccmake or the cmake-gui. > I also added it to my system before any INSTALL command was called. I don’

Re: [CMake] Generate and install a file

2019-03-28 Thread Kyle Edwards via CMake
On Thu, 2019-03-28 at 16:38 -0400, Norton Allen wrote: > Related to that, I noticed in another thread the mention of > 'CMAKE_SKIP_INSTALL_ALL_DEPENDENCY'. If that were set in this case, > how could I indicate that install depends on mygeneratedtarget? There is no way to do this. C/C++ targets (e

Re: [CMake] Generate and install a file

2019-03-28 Thread Norton Allen
On 3/28/2019 4:12 PM, Kyle Edwards wrote: One more thing: if you want the custom target to be built by "make" or "make all", you have to give it the ALL argument: add_custom_target(mygeneratedtarget ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/mygeneratedfile ) Otherwise you can build the target wi

Re: [CMake] Generate and install a file

2019-03-28 Thread Kyle Edwards via CMake
On Thu, 2019-03-28 at 16:07 -0400, Norton Allen wrote: > Kyle, > What you say makes sense, and I can even understand why > add_custom_target might do that, but I cannot get this to actually > work. Here is a minimal CMakeLists.txt. mysourcefile is just and > empty file. > I have these files in test

Re: [CMake] Generate and install a file

2019-03-28 Thread Norton Allen
On 3/28/2019 3:33 PM, Kyle Edwards wrote: Using the DEPENDS argument of add_custom_command() will do this. However, add_custom_command() on its own isn't enough to ensure that the file is generated before installation. You need to pair add_custom_command() with add_custom_target(). Example: a

Re: [CMake] Generate and install a file

2019-03-28 Thread Kyle Edwards via CMake
On Thu, 2019-03-28 at 15:26 -0400, Norton Allen wrote: > On 3/28/2019 3:11 PM, Kyle Edwards wrote: > > On Thu, 2019-03-28 at 14:58 -0400, Norton Allen wrote: > > > because mygeneratedfile is not a 'target', and I can't make it > > > into a target with add_custom_target() because that's talking > >

Re: [CMake] Fortran Compiler with Visual Studio

2019-03-28 Thread Matt Sutton
Sorry for the noise. It was a silly mistake on my part by using the language specified as FORTRAN not Fortran. Regards, Matt Matt Sutton Senior Engineer, Lead Software Developer PADT, Inc. www.padtinc.com 480.813.4884 matt.sut...@padtinc.com

Re: [CMake] Generate and install a file

2019-03-28 Thread Norton Allen
On 3/28/2019 3:11 PM, Kyle Edwards wrote: On Thu, 2019-03-28 at 14:58 -0400, Norton Allen wrote: because mygeneratedfile is not a 'target', and I can't make it into a target with add_custom_target() because that's talking about something else entirely (commands that will be run unconditionall

Re: [CMake] Generate and install a file

2019-03-28 Thread Kyle Edwards via CMake
On Thu, 2019-03-28 at 14:58 -0400, Norton Allen wrote: > because mygeneratedfile is not a 'target', and I can't make it into a > target with add_custom_target() because that's talking about > something else entirely (commands that will be run unconditionally, > not based on dependencies) What exact

Re: [CMake] Custom RPM build failing for want of RPMBUILD_FLAGS

2019-03-28 Thread Stewart, Robert
From: Eric Noulard [mailto:eric.noul...@gmail.com] Sent: Thursday, March 28, 2019 7:48 AM Le ven. 22 mars 2019 à 18:30, Stewart, Robert mailto:robert.stew...@sig.com>> a écrit : Have a look at the code I quoted from CPackRPM.cmake: if(CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE OR NOT CPA

[CMake] Generate and install a file

2019-03-28 Thread Norton Allen
I have spent a few hours trying to solve what seems like a simple problem. I need to generate a file with some dependencies and install it. If I want cmake to figure out how to compile and link it, I can add_executable(mytarget mytarget.c) install(TARGETS mytarget DESTINATION bin) I also

[CMake] Fortran Compiler with Visual Studio

2019-03-28 Thread Matt Sutton
Hello, I'm trying to configure a mixed language project (Fortran, CXX) with cmake 3.14 and I get the following cmake output: The Fortran compiler identification is Intel 17.0.5.20170817 The CXX compiler identification is MSVC 19.16.27027.1 CMake Error at CMakeLists.txt:9 (project): No CMAKE_FOR

[CMake] De-duplication with generator expressions

2019-03-28 Thread Wilke, Jeremiah J via CMake
I am passing several LLVM/Clang passes, which means I need arguments not de-duplicated: -Xtemplight -profiler -Xtemplight -ignore-system Otherwise I would get templight++ -Xtemplight -profiler -ignore-system which crashes. The SHELL: trick works in some cases. However, I also have scenari

Re: [CMake] Install without building unittests

2019-03-28 Thread Scott Bloom
> Note, Im running from inside visual studio... I do realize for a > makefile based system, I can run make install from inside the > executable's build directory > > From: CMake On Behalf Of Scott Bloom > Sent: Wednesday, March 27, 2019 7:23 PM > To: cmake@cmake.org > Subject: [CMake] Install

Re: [CMake] Install without building unittests

2019-03-28 Thread Alan W. Irwin
On 2019-03-28 02:24- Scott Bloom wrote: Note, Im running from inside visual studio... I do realize for a makefile based system, I can run make install from inside the executable's build directory From: CMake On Behalf Of Scott Bloom Sent: Wednesday, March 27, 2019 7:23 PM To: cmake@cmak

Re: [CMake] Install without building unittests

2019-03-28 Thread Scott Bloom
Just a note, for google later on… 😊 The default appears to have the variable unset, so it doesn’t show up in the list of variables in ccmake or the cmake-gui. I also added it to my system before any INSTALL command was called. I don’t know if that is necessary, but it does work SET( CMAKE_SKI

Re: [CMake] Install without building unittests

2019-03-28 Thread Scott Bloom
THANKS That was the exact variable I was looking for. Scott From: CMake On Behalf Of Scott Bloom Sent: Thursday, March 28, 2019 10:05 AM To: frodak17 Cc: cmake@cmake.org Subject: Re: [CMake] Install without building unittests This variable looks very interesting.. Ill play with it and see

Re: [CMake] Install without building unittests

2019-03-28 Thread Scott Bloom
This variable looks very interesting.. Ill play with it and see if it solves my problems 😉 THANKS!! Scott From: frodak17 Sent: Thursday, March 28, 2019 10:03 AM To: Scott Bloom Cc: Kyle Edwards ; cmake@cmake.org Subject: Re: [CMake] Install without building unittests On Thu, Mar 28, 2019 a

Re: [CMake] Install without building unittests

2019-03-28 Thread frodak17
On Thu, Mar 28, 2019 at 11:07 AM Scott Bloom wrote: > That is really not what we want.. We simply don’t want the Install target > to have a dependency on the unittests. Essentially, the Install target > should be have the same as the test target. > > > > If you to a make test, or from VS, on RU

Re: [CMake] Install without building unittests

2019-03-28 Thread Scott Bloom
That is really not what we want.. We simply don’t want the Install target to have a dependency on the unittests. Essentially, the Install target should be have the same as the test target. If you to a make test, or from VS, on RUN_TESTS, RMB->Build, it doesn’t build the tests if they are out

Re: [CMake] Install without building unittests

2019-03-28 Thread Kyle Edwards via CMake
You could build CMake with -DBUILD_TESTING=OFF. This will skip the unit tests altogether. Kyle On Thu, 2019-03-28 at 02:24 +, Scott Bloom wrote: > Note, Im running from inside visual studio…  I do realize for a > makefile based system, I can run make install from inside the > executable’s build

Re: [CMake] Custom RPM build failing for want of RPMBUILD_FLAGS

2019-03-28 Thread Eric Noulard
Le ven. 22 mars 2019 à 18:30, Stewart, Robert a écrit : > Have a look at the code I quoted from CPackRPM.cmake: > > if(CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE OR NOT > CPACK_RPM_USER_BINARY_SPECFILE) > set(RPMBUILD_FLAGS "-bb") > > If CPACK_RPM_USER_BINARY_SPECFILE is defined, then

Re: [CMake] Why do we need NVIDIA Nsight Tegrato create Visual Studio Android Projects?

2019-03-28 Thread Daniel Wynne
A simple yes or no would be sufficient. Am 3/12/19 um 2:18 PM schrieb Daniel Wynne: We would like to use Xamarin for our x-platform app-development with VS. Is any support for Xamarin planned in the near future? Am 11.03.2019 um 15:30 schrieb Daniel Wynne: Hi All! Short question: why do we n