hkaiser changed the topic of #ste||ar to: STE||AR: Systems Technology, Emergent Parallelism, and Algorithm Research | stellar.cct.lsu.edu | HPX: A cure for performance impaired parallel applications | github.com/STEllAR-GROUP/hpx | Buildbot: http://rostam.cct.lsu.edu/ | Log: http://irclog.cct.lsu.edu/
hkaiser has quit [Quit: bye]
K-ballo has quit [Quit: K-ballo]
quaz0r has quit [Ping timeout: 246 seconds]
quaz0r has joined #ste||ar
nikunj97 has joined #ste||ar
K-ballo has joined #ste||ar
hkaiser has joined #ste||ar
<hkaiser>
simbergm: I pushed a commit fixing the source groups directly to your branch, hope you don't mind
<simbergm>
hkaiser: not at all
<simbergm>
seems you already noticed I left out the set_target_property calls, sorry about that
<simbergm>
if this works then we go with this
<simbergm>
I'm not happy that the sources have to go to add_library, but that seemed to be a requirement, no?
<K-ballo>
it is not a cmake requirement
<hkaiser>
K-ballo: it's needed for source groups to work
<K-ballo>
no, it isn't
<hkaiser>
well, it didn't wrk without it
<K-ballo>
without it as in not adding sources to the target in any other way?
<hkaiser>
yes
<K-ballo>
well sure, only a target's sources are sources of a target
<hkaiser>
not sure if there is another way
<K-ballo>
but that does not require passing the sources to add_library
<K-ballo>
there's set_target_sources or similar
<hkaiser>
what other way would we have?
<K-ballo>
I usually glob headers and add them to source groups that way
<simbergm>
we'll have ones that will be compiled as well later on
<K-ballo>
would those still be interface? or static libraries?
<simbergm>
K-ballo: static libraries
<K-ballo>
static libraries would get their own vs project, where the corresponding sources and source groups would appear
<K-ballo>
those sources would not be in the interface, would not propagate to other targets
<hkaiser>
simbergm: should we really compile the modules into their own libraries?
<simbergm>
hkaiser: yes! unless I'm misunderstanding you we definitely want separate libraries
<simbergm>
that's what we get with add_library
<simbergm>
hkaiser: yes! I don't see why not
<simbergm>
Currently they would just get statically linked to the main hpx library but they could (can already actually) be consumed individually by e.g. some non hpx tests and external projects could do the same if they don't want all of hpx
<simbergm>
Currently they would just get statically linked to the main hpx library but they could (can already actually) be consumed individually by e.g. some non hpx tests and external projects could do the same if they don't want all of hpx
<simbergm>
sorry about the duplicates... hope it makes sense anywya
<hkaiser>
simbergm: nod, ok
<hkaiser>
in that case those libraries would become separate VS projects (as K-ballo said)
<hkaiser>
not sure if we could create VS projects using cmake that don't have source files (we might have to add empty source files for this to happen)
<simbergm>
hkaiser they'd still have header files
<hkaiser>
in this case the source groups would be local to those VS projects and we wouldn't need to add the sources to the main hpx projetc anymore
<hkaiser>
simbergm: I know
<simbergm>
Right, I think that was the original intention
<hkaiser>
there is no way to let cmake create a VS project that doesn't have source files, IIRC
<hkaiser>
ok, so let's add an empty source file (if needed for VS only) and create separate static libraries
<simbergm>
Bleh, so that's why you weren't seeing them
<hkaiser>
right
<hkaiser>
misunderstanding on my part, I guess - sorry
<simbergm>
Not sure it won't create a dummy empty library as well then
<simbergm>
No worries, I was equally confused
<hkaiser>
simbergm: yah, it would create an empty library - so what?
<simbergm>
Just ugly, that's all
<hkaiser>
we can do that for VS projects only
<simbergm>
Ok, sure
<hkaiser>
let me try that
<simbergm>
Sure, thanks
<hkaiser>
simbergm: in this case the add_library(hpx_pp...) can't be just INTERFACE only anymore