Selene
January 26, 2019 ยท View on GitHub
Known issues
-
[Dependency] When using Conan to provide
libjpeg-turboas a static library on Windows, and when using a CMake version earlier than 3.12.0, the library might not be found by CMake.This is because the binary library file is called
jpeg-static.lib, but CMake is not looking for a file with a-staticsuffix.This was fixed in CMake 3.12.0; on earlier versions, a possible workaround is to change the line
set(jpeg_names ${JPEG_NAMES} jpeg libjpeg)to
set(jpeg_names ${JPEG_NAMES} jpeg jpeg-static libjpeg)in
FindJPEG.cmake. This file can be found in the global location where CMake stores its module files (i.e. as part of the CMake installation). -
[Dependency] When using vcpkg to provide
libpngon Linux, the library might not be correctly found by CMake.This is because the binary library file is called
libpng16.a, but CMake is first looking for library files calledlibpng.*, which includes e.g.libpng.sofrom the system-provided package in Ubuntu. The resulting situation is that the headers are coming from thevcpkgdirectory, but the library is not.See this (declined) pull request. An interim workaround could be to change
FindPNG.cmakein the CMake modules directory as in this commit.