These are chat archives for inbilla/CMake

28th
Sep 2016
Packadal
@packadal
Sep 28 2016 12:50
Do you know if it's possible to add a dependency to a file for a lib/exe ?
I need to add a dependency to the manifest file to fix a few tests
Joshua Green
@inbilla
Sep 28 2016 15:43
Should just be able to add it as a source file in cmake...
For FASTBuild... You should be able to just set it as an explicit additionalDependency
Packadal
@packadal
Sep 28 2016 17:09
If I add it as a source file it tries to compile it and gives warnings which fails the CMake tests
Can't seem to find additionalDependency in the docs, where is it?
Joshua Green
@inbilla
Sep 28 2016 17:10
You add it as a source to the cmake file. But you would parse it out. D
And put it into fastbuilds additional dependencies
Packadal
@packadal
Sep 28 2016 17:11
I'm down to little tests failing, pretty close to what we had before the rebase
Joshua Green
@inbilla
Sep 28 2016 17:11
Every node in fastbuild has the additionalDependency variable
I'll find it
My bad
It's called prebuiltdependencies
Everything has it.
You can stick files in there, and it'll invalidate the node if they have changed. Like you want for manifests
I've used it a bunch of times for custom commands and defining the order of things
Packadal
@packadal
Sep 28 2016 17:21
Oh he, I found it while searching how to do this, but since the doc says 'targets' I didn't realize you could put files
Joshua Green
@inbilla
Sep 28 2016 17:22
Yeah, fastbuild has nodes, nodes have names, and it's just referring to nodes in there. Files are a basic node.
Packadal
@packadal
Sep 28 2016 17:26
That's really not clear in the doc IMHO