Archived issue #0029231
Incorrect FRREIMAGE library detecting
Description
For set up freeimage usage from custom location 4(!) parameters to be set is required:
3RDPARTY_FREEIMAGE_DIR - dir with freeimage
3RDPARTY_FREEIMAGE_INCLUDE_DIR - dir with freeimage includes
3RDPARTY_FREEIMAGE_LIBRARY_DIR_freeimage - dir with built freeimage
3RDPARTY_FREEIMAGE_LIBRARY_freeimage - path to library
* If I set 3RDPARTY_FREEIMAGE_DIR to freeimage sources, include dir cannot be found.
* 3RDPARTY_FREEIMAGE_LIBRARY_DIR_freeimage and 3RDPARTY_FREEIMAGE_LIBRARY_freeimage should be set for custom libfreeimage.so location.
First bullet seems to be correct because 3RDPARTY_FREEIMAGE_DIR - dir where freeimage installed (but as for me it can be made easily by cmake)
But second bullet seems to be a bug (a suppose one parameter is enougth for settings custom library location) (see adm/cmake/3rdparty_macro.cmake:44 [incorrect condition])
3RDPARTY_FREEIMAGE_DIR - dir with freeimage
3RDPARTY_FREEIMAGE_INCLUDE_DIR - dir with freeimage includes
3RDPARTY_FREEIMAGE_LIBRARY_DIR_freeimage - dir with built freeimage
3RDPARTY_FREEIMAGE_LIBRARY_freeimage - path to library
* If I set 3RDPARTY_FREEIMAGE_DIR to freeimage sources, include dir cannot be found.
* 3RDPARTY_FREEIMAGE_LIBRARY_DIR_freeimage and 3RDPARTY_FREEIMAGE_LIBRARY_freeimage should be set for custom libfreeimage.so location.
First bullet seems to be correct because 3RDPARTY_FREEIMAGE_DIR - dir where freeimage installed (but as for me it can be made easily by cmake)
But second bullet seems to be a bug (a suppose one parameter is enougth for settings custom library location) (see adm/cmake/3rdparty_macro.cmake:44 [incorrect condition])
Public activity
2 archived notes
Participants are labeled by their role within this record.
The problem is a lot if arguments to be set for custom FREEIMAGE location (probably for other libraries too).
For successfull searching of 3rd party products it's enougth to define only directory with installed product (e.g. 3RDPARTY_FREEIMAGE_DIR). Other variables will be filled automatically. If checkbox "Advanced" is turned off there only 3RDPARTY_DIR, 3RDPARTY_DLL_DIR, 3RDPARTY_LIBRARY_DIR and 3RDPARTY_INCLUDE_DIR varibales will be displayed in CMake GUI interface.
I don't see what I can change here. Dear ski, could you please also check this issue.
I don't see what I can change here. Dear ski, could you please also check this issue.