Open viric opened 7 years ago
Oh I forgot to tell where the error happens. The error happens when the BuldToolkit tries to build the "optimized;...;debug;..." kind of libraries when the source already is a string like this. It ends up being "optimzied;optimized;...." giving a cmake error.
Here is the line doing the assembly that has double "optimized" for freetype:
https://github.com/tpaviot/oce/blob/master/adm/cmake/BuildToolkit.cmake#L251
In cmake 3.6 FindFreetype returned a FREETYPE_LIBRARIES including only the "Release" version of the lib. In cmake 3.7 it returns the usual "optimized;release-lib;debug;debug-lib" string. This fails in TKService CMakeLists.txt:
https://github.com/tpaviot/oce/blob/master/adm/cmake/TKService/CMakeLists.txt#L50
The cmake commit that made the change for cmake 3.7:
https://github.com/tpaviot/oce/blob/master/adm/cmake/TKService/CMakeLists.txt#L50
So OCE cmakelists should be updated for cmake 3.7.