Skip to content
Snippets Groups Projects
Commit de153e2b authored by Lars Bilke's avatar Lars Bilke
Browse files

Workaround for a visual studio 2010 bug: http://public.kitware.com/Bug/view.php?id=11240.

parent abf36dfb
No related branches found
No related tags found
No related merge requests found
...@@ -105,6 +105,10 @@ string(REGEX REPLACE ".*#define[ \t]+ZLIB_VERSION[ \t]+\"([-0-9A-Za-z.]+)\".*" ...@@ -105,6 +105,10 @@ string(REGEX REPLACE ".*#define[ \t]+ZLIB_VERSION[ \t]+\"([-0-9A-Za-z.]+)\".*"
add_library(zlib STATIC ${ZLIB_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS}) add_library(zlib STATIC ${ZLIB_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
# Workaround for a Visual Studio bug:
if(MSVC AND CMAKE_SIZEOF_VOID_P EQUAL 8)
set_target_properties(zlib PROPERTIES STATIC_LIBRARY_FLAGS "/machine:x64")
endif()
#============================================================================ #============================================================================
# Example binaries # Example binaries
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment