[CMake] Extend FIND_LIBRARY to properly recognize debug libs

Bill Hoffman bill.hoffman at kitware.com
Wed Sep 19 09:16:16 EDT 2007


Christian Ehrlicher wrote:
>
>>     
> We use this approach
> FIND_LIBRARY(kdewin32  KDEWIN32LIB)
> FIND_LIBRARY(kdwin32_d KDEWIN32LIB_D)
> if(KDEWIN32LIB and KDEWIN32LIB_D)
>   set(KDEWIN32_LIBRARY optimized ... debug ...)
>  ... checking all three possibilities
>
> target_link_libraries(foo KDEWIN32_LIBRARY)
>
> But I think I can put this into one macro which needs to be used all over kde.
>   
OK, that looks good.   So, what is the feature you want, and how would 
it be used in this case?

-Bill



More information about the CMake mailing list