[CMake] linking large lib on windows 64 bit
Verweij, Arjen
VerweijA at tass-safe.com
Wed Aug 4 09:08:40 EDT 2010
Hi,
I'm trying to link my project on Windows. Part of the task is constructing a big archive. Relevant compilers: Intel C/C++, Intel Fortran, Microsoft VS 2005 SE SP1.
Apparently the link line is too long (expanded command line lib bla too long).
I have attempted to circumvent it with:
# create a C++ static library
#SET(CMAKE_CXX_CREATE_STATIC_LIBRARY "lib ${CMAKE_CL_NOLOGO} <LINK_FLAGS> /out:<TARGET> <OBJECTS> ")
SET(CMAKE_CXX_CREATE_STATIC_LIBRARY "lib ${CMAKE_CL_NOLOGO} <LINK_FLAGS> /out:<TARGET> ${CMAKE_START_TEMP_FILE} <OBJECTS> ${CMAKE_END_TEMP_FILE} ")
according to http://www.itk.org/Bug/view.php?id=7217 - but cmake doesn't fill in the link flags. Is Bill's suggestion to patch Windows-cl.cmake the fix, or is it fix otherwise?
Regards,
Arjen
More information about the CMake
mailing list