Hi Everybody. I am working on a project that has to be compiled for Windows and Linux. Also I have 2 external libraries that are part of the project:
- boost program_options - this one I want to be included in the program so I made it STATIC IMPORTED
- a in house .so file - this one should be provided next to the program so I made it SHARED IMPORTED
For both of these I specified a IMPORTED_LOCATION.
Somehow my CMake set up works just fine on windows, I think its due to the priority order dll’s use in Windows. But in Linux it creates dependencies to the absolute paths of the .so files that were used in the build process and when I move the program to a different location / computer the .so files can not be found.
Any help would be really appreciated and thanks in advance!