Hello there,

after upgrading from CMake 2.4.6 to 2.4.7, the previously working build of our 
software project failed. The failures were caused by missing linker flags in 
Visual Studio .NET projects that have been specified in the CMakeLists.txt 
files using

set_target_properties(<mytarget> PROPERTIES LINK_FLAGS "<myflags>")

The missing flags are:
/DEF:<module definition file>
(This is completely ignored, resulting in missing DLL entry points.)

/DLL /NOENTRY
(This combination is required to build a resource-only .exe file for inclusion 
in a Windows Installer setup. However, only /NOENTRY shows up in the Visual 
Studio project - and is ignored by the linker since /DLL is missing, resulting 
in a link error.)

If those flags have been blocked intentionally, I would be interested to know 
the reason, and how to have them generated with 2.4.7 (since they are obviously 
required at times). Otherwise it would be vital to have them work again in 
Visual Studio .NET - as of now, I'm forced to revert to 2.4.6, which is a pity, 
since 2.4.7 provides native support for precompiled headers in Visual Studio...

BTW: The "NMake Makefiles" Generator still accepts those LINK_FLAGS, and the 
build using Makefiles still works.

Best regards,

Gerhard

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to