Archived issue #0029396
Configuration, Cmake: restore 3rd-party libraries into INTERFACE_LINK_LIBRARIES property of installed OCCT targets
Description
In the frames of #0029277 issue all third-party libraries were removed from INTERFACE_LINK_LIBRARIES property of some OCCT libraries. The reason for this removing was the fact that after copying/moving OCCT build from one workstation to another or simple moving of the third-party libraries the absolute paths, which are presented in the OCCT CMake configuration files, became invalid.
But as a result the changes, described above, lead to a problem with the linking on Linux, for the details see #0028977 issue. So to avoid this problem it is suggested to rollback the changes made in the frames of #0029277 issue.
Regarding the problem described in #0029277 issue: it is true that current OCCT CMake configuration is doesn't allow move OCCT build or third-party libraries in a simple way. It is required to update manually several OCCT CMake configuration files in order to correct absolute path to OCCT third-party libraries (tbb, ffmpeg, ...). Maybe it make sense to improve OCCT CMake configuration in order to simplify the procedure of the moving OCCT builds, but this is beyond the scope of this concrete issue.
But as a result the changes, described above, lead to a problem with the linking on Linux, for the details see #0028977 issue. So to avoid this problem it is suggested to rollback the changes made in the frames of #0029277 issue.
Regarding the problem described in #0029277 issue: it is true that current OCCT CMake configuration is doesn't allow move OCCT build or third-party libraries in a simple way. It is required to update manually several OCCT CMake configuration files in order to correct absolute path to OCCT third-party libraries (tbb, ffmpeg, ...). Maybe it make sense to improve OCCT CMake configuration in order to simplify the procedure of the moving OCCT builds, but this is beyond the scope of this concrete issue.
Steps to reproduce
Configure, Generate and Build solution as usual
Check that installed CMake config files contains paths to 3rd-party libraries in INTERFACE_LINK_LIBRARIES property of some OCCT libraries.
Check that installed CMake config files contains paths to 3rd-party libraries in INTERFACE_LINK_LIBRARIES property of some OCCT libraries.
Public activity
6 archived notes
Participants are labeled by their role within this record.
Branch [archived branch] has been created by Participant.
[revision removed]
Detailed log of new commits:
Author: ski
Date: Thu Dec 21 15:37:53 2017 +0300
0029396: Configuration, Cmake: restore 3rd-party libraries into INTERFACE_LINK_LIBRARIES property of installed OCCT targets
Changes from branch CR29277 were reverted.
[revision removed]
Detailed log of new commits:
Author: ski
Date: Thu Dec 21 15:37:53 2017 +0300
0029396: Configuration, Cmake: restore 3rd-party libraries into INTERFACE_LINK_LIBRARIES property of installed OCCT targets
Changes from branch CR29277 were reverted.
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Dear apn,
please review.
please review.
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Reviewed and tested. Installed CMake config files contains paths to 3rd-party libraries in INTERFACE_LINK_LIBRARIES property (e.g. OpenCASCADEFoundationClassesTargets.cmake contains "C:/occt-3rdparty/Windows-64-VC10/tbb_2017.0.100/lib/intel64/vc10/tbb.lib", etc).
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]
Related records