Closed andydevs closed 2 years ago
Temporary workaround: build, then reconfigure cmake (cmake ..
) then run make install
Switching from installing files to installing imported targets to ensure that targets are built before configuring install.
There is also an option to include target interfaces which may be causing the issues with png
Looks like I'm already including directories from opencv.... although I'm not including the 3rd party libraries from opencv.
Main issue, main decision: With IMPORTED_TARGETS I'll have to manually create install targets for versioned libraries (I'm talking about libboost_program_options.so.1.78.0 for example)
These also only appear in linux as well. So I'll have to consider that.
I could wrap the entire thing in an if statement... but then again, that will only check during configuration time, not build time when the file will be garunteed...
What about custom targets?
SO claps hands loudly then rubs them together
I will have to create TWO versions of the install for each external project, one for linux and one for Mac/Windows, since linux seems like the only OS that has versioned library extensions (like 1.78.0) or something...
Now, question, do I need the other file (the plain .so), or can I get away with just using the versioned one?
I think that would make the headache a lot less severe.
I got one way to find out!
Running make install will not always install correct libraries
Ensure cmake runs install after everything is built