[Cmake] MSVC Ignore libraries

William A. Hoffman bill.hoffman at kitware.com
Thu Mar 20 23:21:16 EST 2003


Since these are cache values, you want to append to them, as cmake may have 
some default options that you need.
So, this should do the trick:

SET(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} "/nodefaultlibs")


At 02:56 PM 3/20/2003 -0700, Cody Batt wrote:
>Bill Hoffman wrote:
>
>>Try these variables in the cache:
>>CMAKE_EXE_LINKER_FLAGS
>>CMAKE_SHARED_LINKER_FLAGS
>>
>>
>Thanks for the help.  We are using vs6 so this works for us. Being new to 
>cmake I now have another question.  I'm wondering if it is possible and 
>how I would go about setting these variables from the CMakeLists.txt 
>file.  I would rather not have to remember to set these cache variables 
>every time I do a fresh checkout from cvs for example. I tried several 
>permutations of the set command with no luck.  I'm sure I'm just missing 
>something with the syntax.  Any suggestions?
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake






More information about the CMake mailing list