On 12/17/2015 11:39 AM, Andreas Schneider wrote: > If you look at the code, my changes to the code are inside an already existing > > if (PYTHON_EXECUTABLE) > ... > > So if you don't call find_package(PythonInterp) before > find_package(PythonLibs) it will not get the PATH information for > PYTHON_SITELIB.
Sure, but if PYTHON_EXECUTABLE is set to refer to a binary that cannot run on the host because it is part of a cross-compiling SDK then this won't work. Or, if PYTHON_EXECUTABLE can run on the host but it is not the executable that corresponds to the libraries because the libs are for another architecture then it will give wrong information. -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers