[CMake] library
Robert Fleming
robert.fleming.multigen at gmail.com
Wed Feb 27 16:51:01 EST 2008
To solve the first problem I did:
set_target_properties(rtf PROPERTIES LINK_FLAGS "/NODEFAULTLIB:msvcrt")
Not sure if this is the best way. You'll want to wrap it with some
conditional statements checking you're on windows, probably.
Also, if you just want to ignore a library in debug, you can do
LINK_FLAGS_DEBUG I believe.
On Wed, Feb 27, 2008 at 6:14 AM, Harsha <alive5uk at yahoo.co.uk> wrote:
>
> In VS you can
>
> ignore a specific library:
> Project -> Properties -> Linker -> Input -> Ignore Specific Libraries
>
> for a lib target add your own dependencies with directory:
> Project -> Properties -> Librarian -> Additional Dependencies
> Project -> Properties -> Librarian -> Additional Library Directories
>
> Is there a way to do these in cmake ? For the second thing I tried:
>
> find_library(jpg NAMES "jpeg-v6" PATHS "${MYPATH}/lib" NO_DEFAULT_PATH)
> target_link_libraries(rtf ${jpg})
>
> I can't seem to find anything on the first problem.
>
> > A.M.
>
> ________________________________
> Sent from Yahoo! Mail.
> A Smarter Inbox.
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
More information about the CMake
mailing list