Re: [CMake] error executing script with cmake -P

2019-10-17 Thread Tom Finegan via CMake
On Thu, Oct 17, 2019 at 2:14 AM Edoardo Pasca wrote: > Hi Tom, > > I thought ${testdata} was going to be filled in by the actual > patch_script.cmake at this line. > > file (STRINGS TestData.py testdata NEWLINE_CONSUME) > Sorry, some nasty formatting in my email client had me misreading your

Re: [CMake] error executing script with cmake -P

2019-10-15 Thread Tom Finegan via CMake
It looks like you aren't passing the $testdata variable down to the script. >From your message it looks like you need to add the following to your PATCH_COMMAND: -Dtestdata=${testdata} You must explicitly pass $testdata (and any other variables defined in the calling script) to

Re: [CMake] Trouble with CMAKE_EXE_LINKER_FLAGS not honored

2019-06-05 Thread Tom Finegan via CMake
On Wed, Jun 5, 2019 at 9:29 AM Bryan Christ wrote: > Tom, > > I'll give that a try. Can that variable be changed after project() is > called? > Yes, you should be able to change it at any point in your CMake script(s). Remember that CMAKE__LINKER_FLAGS will effect all targets. Restricting

Re: [CMake] Trouble with CMAKE_EXE_LINKER_FLAGS not honored

2019-06-04 Thread Tom Finegan via CMake
I think you want CMAKE_SHARED_LINKER_FLAGS: https://cmake.org/cmake/help/latest/variable/CMAKE_SHARED_LINKER_FLAGS.html You can also use target_link_libraries to pass linker flags: https://cmake.org/cmake/help/latest/command/target_link_libraries.html On Tue, Jun 4, 2019 at 1:12 PM Bryan

Re: [CMake] The Xcode generator and ASM_NASM support

2018-10-03 Thread Tom Finegan via CMake
On Wed, Oct 3, 2018 at 10:29 AM Gregor Jasny wrote: > Hello, > > > On 10/3/18 6:08 PM, Tom Finegan via CMake wrote: > > I'm trying to get rid of some local CMake scripting for building assembly > > with nasm and yasm, but I'm running into a problem wi

[CMake] The Xcode generator and ASM_NASM support

2018-10-03 Thread Tom Finegan via CMake
I'm trying to get rid of some local CMake scripting for building assembly with nasm and yasm, but I'm running into a problem with the Xcode generator. For the make and ninja generators, everything is fine-- nasm and yasm are both working as expected. The same is not true for Xcode. When building