On 03/31/2016 10:31 PM, Richard Christie wrote: > So I've attached an improved fix, which is much simpler: > it determines whether PYTHON_LIBRARY is a list and extracts > the optimized library out of it.
Thanks. Please try this code instead: # If we ran before and reported multiple configurations then PYTHON_LIBRARY # is a list "optimized;PYTHON_LIBRARY;debug;PYTHON_LIBRARY_DEBUG". Extract # the original value so we can re-construct the list properly later. if(";${PYTHON_LIBRARY};" MATCHES ";optimized;([^;]+);") set(PYTHON_LIBRARY "${CMAKE_MATCH_1}") endif() Thanks, -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