[CCPPETMR/SIRF-SuperBuild] previous install can cause compilation problems for newer versions (#28)

צפייה אחת
מעבר להודעה הראשונה שלא נקראה

Kris Thielemans

לא נקראה,
16 ביולי 2017, 18:56:5016.7.2017
עד CCPPETMR/SIRF-SuperBuild,Subscribed

external packages are installed (by default in INSTALL, and therefore include files in INSTALL/include). This works fine at first build. However, when the include files of one of the external packages get updated, it is possible that the installed versions get found first (as opposed to the include files of the external package), resulting in compilation failures or segmentation faults.

Example:

Boost gets installed in INSTALL/include. STIR as well. STIR's CMakeLists.txt has

include_directories(${Boost_INCLUDE_DIRS})

before adding its own include directory to the compiler path. This is arguably a bug in STIR, but it is possible that other packages have the same problem.

Possible solution

If every package would be installed in its own directory, this problem would not occur. This is somewhat ugly though and means we will need to take care of passing the relevant paths along.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Kris Thielemans

לא נקראה,
16 ביולי 2017, 19:01:4816.7.2017
עד CCPPETMR/SIRF-SuperBuild,Subscribed

STIR bug filed in UCL/STIR#85

השב לכולם
השב למחבר
העבר לנמענים
0 הודעות חדשות