[libical] PACKAGE_DATA_DIR problem with CMake on windoze

andrew.marlow at uk.bnpparibas.com andrew.marlow at uk.bnpparibas.com
Tue Sep 7 01:26:51 PDT 2010


I solved my earlier problem with CMake - I was in the wrong directory! I 
was in src when I should have been the level above. Duh! Now it builds the 
solution file for VC8. However, it fails to compile.

Looking at the project settings it looks like there has been some token 
mangling. Under Preprocessor I see the following:

WIN32
_WINDOWS
_DEBUG
PACKAGE_DATA_DIR=\"C:/Program,_CRT_SECURE_NO_DEPRECATE,_CRT_NONSTDC_NO_DEPRECATE,YY_NO_UNISTD_H,BIG_ENDIAN=0,LITTLE_ENDIAN=1,BYTE_ORDER=BIG_ENDIAN,WIN32,NOMINMAX,_SECURE_SCL_THROWS=1,_SECURE_SCL=1,_CRT_SECURE_NO_DEPRECATE,_CRT_NONSTDC_NO_DEPRECATE,_MBCS,_VC80_UPGRADE=0x0600,HAVE_CONFIG_H,BUILD_LIBICALDLL,CMAKE_INTDIR=\"Debug\",ical_EXPORTS

I did edit CMakeLists.txt. I added this line:

  add_definitions(-DWIN32 -DNOMINMAX -D_SECURE_SCL_THROWS=1 
-D_SECURE_SCL=1 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE 
-D_MBCS -D_VC80_UPGRADE=0x0600)

This is just to make all the macros consistent with the rest of our build. 
They need to be, especially in the area of checked iterators, otherwise we 
get weird and nasty errors at runtime.

It looks to me like PACKAGE_DATA_DIR has been clipped and other macro 
settings have got mixed in somehow. Can anyone shed any light on this 
please?


Regards,

Andrew Marlow

___________________________________________________________
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is prohibited.

Please refer to http://www.bnpparibas.co.uk/en/information/legal_information.asp?Code=ECAS-845C5H  for additional disclosures.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/libical-interest/attachments/20100907/6f8e59fd/attachment.html>


More information about the libical-interest mailing list