On Fri, Aug 14, 2009 at 05:38:06PM -0400, Kenneth Chang wrote:
> SET( CMAKE_SHARED_LIBRARY_PREFIX_bak ${CMAKE_SHARED_LIBRARY_PREFIX} )
> SET( CMAKE_SHARED_LIBRARY_PREFIX )
> FIND_LIBRARY( THOST_LIBRARY thostmduserapi.so
>  PATHS /home/kchang/sandbox/thost )
> SET( CMAKE_SHARED_LIBRARY_PREFIX ${CMAKE_SHARED_LIBRARY_PREFIX_bak} )
> 
> MESSAGE( STATUS "DEBUG: THOST_LIBRARY = ${THOST_LIBRARY}" )
> 
> TARGET_LINK_LIBRARIES( main
>  ${THOST_LIBRARY}
> )

Maybe you need to wait until after you call target_link_libraries() to
reset CMAKE_SHARED_LIBRARY_PREFIX to its original value?

tyler
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to