tudelft3d/City3D

what is "POLYFIT_lpsolve_DIR"?

Closed this issue · 1 comments

Hi!
Thank you so much for opening up your source code!
When I read the code, I noticed that in "../code/3rd_party/3rd_soplex/cmakelists.txt", contains a section of code
target_include_directories(${PROJECT_NAME} PRIVATE ${POLYFIT_lpsolve_DIR}/shared ${POLYFIT_lpsolve_DIR}/bfp ${POLYFIT_lpsolve_DIR}/bfp/bfp_LUSOL ${POLYFIT_lpsolve_DIR}/bfp/bfp_LUSOL/LUSOL ${POLYFIT_lpsolve_DIR}/colamd)
I try to get the information about the ${POLYFIT_lpsolve_DIR} with cmake debugger, but got an empty value.
So, waht is it?

Hi, as its name stands, POLYFIT_lpsolve_DIR points to the root directory of lpsolve. You can find it in City3D/code/CMakeLists.txt.
It is used to specify the relative path of lpsolve (very useful when other modules depend on it).

An advice:
When reading code, consider all code in the source tree as a whole, and then you will not miss it.