[cmake-developers] Introduction and volunteering for the Matlab package

Brad King brad.king at kitware.com
Mon Jan 26 08:43:53 EST 2015


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



More information about the cmake-developers mailing list