[CMake] SET_TARGET_PROPERTIES LINK_FLAGS not working
Mike Jackson
imikejackson at gmail.com
Fri Apr 13 11:42:15 EDT 2007
I use the following in my CMakeLists.txt file. (Comments Welcome).
Note this is when building against Qt 4.2.x
IF(WIN32)
SET(GUI_TYPE WIN32)
ADD_DEFINITIONS(-DNODEFAULTLIB:library)
SET (${QT_LIBRARIES} qtmain ${QT_LIBRARIES})
ENDIF(WIN32)
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
On Apr 13, 2007, at 7:28 AM, Thomas Christian Chust wrote:
> Teodor Calin Hanchevici wrote:
>
>> Alan, this does not work either,
>> LINK_FLAGS "/nodefaultlib:LIBCMT.lib;/nodefaultlib:MSVCRT.lib"
>> it always picks the first one
>> [...]
>
>
> Hello,
>
> the LINK_FLAGS property has to be set to a simple space separated
> string
> just like it is supposed to appear on the linker command line. Thus
> is think
>
> LINK_FLAGS "/nodefaultlib:LIBCMT.lib /nodefaultlib:MSVCRT.lib"
>
> should do, but I don't have the MS development toolchain installed,
> so I
> can't check whether that really works as expected.
>
> cu,
> Thomas
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list