http://llvm.org/bugs/show_bug.cgi?id=19403

            Bug ID: 19403
           Summary: zlib support in windows with MSVC
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Why is zlib support disabled for windows/MSVC in CMake?

I got the zlib headers and libraries from GetGnuWin32. I have a code in llvm
that uses zlib algorithm. With the current CMake configuration in LLVM, I
couldn't configure to link zlib.

To detect zlib.h header   
-DCMAKE_C_FLAGS="/IC:/GetGnuWin32/gnuwin32/include" -
DCMAKE_CXX_FLAGS="/IC:/GetGnuWin32/gnuwin32/include" 


To detect zlib.lib library (dirty hack)
-DHAVE_LIBZ=1 -DCMAKE_EXE_LINKER_FLAGS="C:/GetGnuWin32/gnuwin32/lib/zlib.lib"
-DCMAKE_SHARED_LINKER_FLAGS="C:/GetGnuWin32/gnuwin32/lib/zlib.lib"
The checks to detect zlib library and add it to the linker line are written for
non-windows/MSVC sytems.

I think, blocking the zlib support in windows is a limitation and a bug.

--Sumanth G

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to