Dear Brad, I addressed your proposed solution and sent you a patch, that is pending approval since this afternoon because of a size exceeding 300KB.
Best regards, Raffi Enficiaud > On 26 Jan 2015, at 14:43, Brad King <brad.k...@kitware.com> wrote: > > On 01/23/2015 07:52 PM, Raffi Enficiaud wrote: >>> This should be handled with a save/restore. >> >> Are you referring to the CMakePushCheckState? > > No, CMAKE_FIND_LIBRARY_PREFIXES should be saved/restored manually > with code in the Find module around the find_library calls. You > could also create a _Matlab_find_library function that sets > CMAKE_FIND_LIBRARY_PREFIXES and calls find_library. The setting > would go out of scope when the function returns. See the FindBoost > module for a similar example. > > -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