File tree Expand file tree Collapse file tree
share/cmake/modules/install Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ if(NOT ZLIB_FOUND AND OCIO_INSTALL_EXT_PACKAGES AND NOT OCIO_INSTALL_EXT_PACKAGE
5353
5454 set (ZLIB_INCLUDE_DIRS "${_EXT_DIST_ROOT} /${CMAKE_INSTALL_INCLUDEDIR} " )
5555
56- # Windows need the "d" suffix at the end.
57- if (WIN32 AND BUILD_TYPE_DEBUG)
56+ # Windows need the "d" suffix at the end (only for MSVC) .
57+ if (MSVC AND BUILD_TYPE_DEBUG)
5858 set (_ZLIB_LIB_SUFFIX "d" )
5959 endif ()
6060
Original file line number Diff line number Diff line change @@ -46,9 +46,11 @@ if(NOT expat_FOUND AND OCIO_INSTALL_EXT_PACKAGES AND NOT OCIO_INSTALL_EXT_PACKAG
4646 if (BUILD_TYPE_DEBUG)
4747 set (_expat_LIB_SUFFIX "d" )
4848 endif ()
49- # Static Linking, Multi-threaded Dll naming (>=2.2.8):
50- # https://github.com/libexpat/libexpat/blob/R_2_2_8/expat/win32/README.txt
51- set (_expat_LIB_SUFFIX "${_expat_LIB_SUFFIX} MD" )
49+ if (MSVC )
50+ # Static Linking, Multi-threaded Dll naming (>=2.2.8):
51+ # https://github.com/libexpat/libexpat/blob/R_2_2_8/expat/win32/README.txt
52+ set (_expat_LIB_SUFFIX "${_expat_LIB_SUFFIX} MD" )
53+ endif ()
5254 endif ()
5355
5456 # Expat use a hardcoded lib prefix instead of CMAKE_STATIC_LIBRARY_PREFIX
You can’t perform that action at this time.
0 commit comments