I have having hard time to let cmake configuration detect the zlib
header in windows with "Visual Studio 12" generator. My cmake
configuration goes like
>> Set path, include and lib environment variables to point to zlib
headers and libraries. Cmake version is 184.108.40.206
cmake -G "Visual Studio 12" -D LLVM_TARGETS_TO_BUILD:STRING=%TARG% -D
LLVM_TARGET_ARCH:STRING=%TRIPLE% -D LLVM_ENABLE_PIC:BOOL=ON -D
CMAKE_INSTALL_PREFIX=%win_top_install_dir% -D CMAKE_BUILD_TYPE=%BLDMODE%
-DLLVM_APPEND_VC_REV:BOOL=ON -D LLVM_VENDOR_NAME:STRING=%NAME% -D
As far as I know, cmake tries to compile a simple file with "#include
<zlib.h>" with MSbuild.exe which invokes a project file. MSbuild has its
own environment and ignores the user's environment variables.
Any one face this issue before?
Let me know if you need more details on this.
The bottom line is , I want to set HAVE_ZLIB to 1