I want to compile OCC with VS2017 for x64. Therefore, I downloaded the source of the current version and the libraries freeimage, freetype, tcl and tk (all latest version).
I compiled the external libraries with VS2017 (also latest compiler version). Only some issues with TK and the current WinSDK, but now they are all compiled.
My external libraries directories have all a similar structure e.g.
"C:\libraries\cpp\FreeImage\FreeImage-3.17.0" --> include path
"C:\libraries\cpp\FreeImage\FreeImage-3.17.0\v141\x64" -> libraries path with encodes compiler version and target platform. Sometimes, there is also a debug and release directory.
Now, I wanted to create the VS solution with CMake and I set the paths for my library. But I always got errors about missing freetype, tcl and tk.
E.g. when setting the path for 3RDPARTY_FREEIMAGE_INCLUDE_DIR, the my path is reseted after clicking configure. Similar behaviour for TK etc.
What am I doing wrong? A screenshot with the errors messages is attached.