<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt><font color="#000000">Hi,<br>
<br>
I am CMaking on Windows 7 with CMake 2.8.3. Our project is
incorporating ParaView and its cmake system. The problem I am
having is that WIN32_LEAN_AND_MEAN is getting defined, which is
causing linker errors in H5Detect and other project(s).<br>
<br>
After I run CMake and load my project in Visual Studio the
Preprocessor flags have these values:<br>
</font></tt>
<blockquote><tt><font color="#000000">WIN32;_WINDOWS;TEST;_USE_MATH_DEFINES;NOMINMAX;WIN32_LEAN_AND_MEAN;_WIN32_WINNT=0x0502;WINVER=0x0502;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;_DEBUG;VTK_PYTHON_BUILD;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;VTK_IN_VTK;BIND_TO_CURRENT_VCLIBS_VERSION=1;_CRT_SECURE_NO_WARNINGS;NDEBUG;_CRT_SECURE_NO_WARNINGS;CMAKE_INTDIR=\"Debug\"<br>
</font></tt></blockquote>
<tt><font color="#000000"><font color="#000000">Right after H5detect
is added, </font>in
paraview\VTK\Utilities\vtkhdf5\CMakeLists.txt, I print out
GLOBAL, TARGET, SOURCE, and DIRECTORY COMPILE_DEFINITIONS and I
see these values:<br>
</font></tt>
<blockquote><tt><font color="#000000">add_executable H5detect<br>
GLOBAL COMPILE_DEFINITIONS = <br>
DIRECTORY
C:/Stellar/Controlled/CreateRF-repos/master/CreateRF/3rdparty/paraview/VTK/Utilities/vtkhdf5/src
COMPILE_DEFINITIONS =
VTK_PYTHON_BUILD;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;VTK_IN_VTK;BIND_TO_CURRENT_VCLIBS_VERSION=1;_CRT_SECURE_NO_WARNINGS;NDEBUG;_CRT_SECURE_NO_WARNINGS<br>
SOURCE
C:/Stellar/Controlled/CreateRF-repos/master/CreateRF/3rdparty/paraview/VTK/Utilities/vtkhdf5/src/H5detect.c
COMPILE_DEFINITIONS = <br>
TARGET H5detect COMPILE_DEFINITIONS = <br>
</font></tt></blockquote>
<tt><font color="#000000">I don't see <font color="#000000">WIN32_LEAN_AND_MEAN,
as well as some of the other values, e.g. <font
color="#000000">NOMINMAX, are missing.<br>
<br>
Is there another place in the Cmake system or Visual Studio
that is setting <font color="#000000"><font color="#000000">WIN32_LEAN_AND_MEAN</font></font>?<br>
<br>
I also tried doing a remove_definitions(
-DWIN32_LEAN_AND_MEAN ) before and after adding H5detect,
but that didn't seem to have any affect.<br>
<br>
Thanks in advance if somebody can shed light on this issue.<br>
Jon<br>
<br>
</font></font></font></tt>
</body>
</html>