Skip to content

BUG: PYTHON_LIBRARY may be a list

PYTHON_LIBRARY may contain a list because of SelectLibraryConfigurations. If it is the case, the list can be: optimized;<FILEPATH_TO_RELEASE_LIBRARY>;debug;<FILEPATH_TO_DEBUG_LIBRARY> In this case, we need to set PYTHON_LIBRARY to one value, otherwise get_filename_component will crash (too many arguments). If SelectLibraryConfigurations was run, then the individual PYTHON_LIBRARY_ values have been populated. The value of PYTHON_LIBRARY if reset to PYTHON_LIBRARY_ if necessary.

Merge request reports