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
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
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
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
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
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