[depsbuilder] Fix broken osl flags on windows.
authorRay Molenkamp <github@lazydodo.com>
Mon, 14 Aug 2017 21:11:05 +0000 (15:11 -0600)
committerRay Molenkamp <github@lazydodo.com>
Mon, 14 Aug 2017 21:11:05 +0000 (15:11 -0600)
build_files/build_environment/cmake/osl.cmake

index 97b86c39baa4104925a4e5dc3c97bcd62a1ddee0..5ddb981c60497d323bc5b1caff1ca6bd2d2fff4e 100644 (file)
@@ -21,9 +21,9 @@ if(WIN32)
        set(OSL_FLEX_BISON -DFLEX_EXECUTABLE=${LIBDIR}/flexbison/win_flex.exe -DFLEX_EXTRA_OPTIONS="--wincompat" -DBISON_EXECUTABLE=${LIBDIR}/flexbison/win_bison.exe)
        set(OSL_OPENIMAGEIO_LIBRARY "${LIBDIR}/openimageio/lib/${LIBPREFIX}OpenImageIO${LIBEXT};${LIBDIR}/openimageio/lib/${LIBPREFIX}OpenImageIO_Util${LIBEXT};${LIBDIR}/png/lib/libpng16${LIBEXT};${LIBDIR}/jpg/lib/${LIBPREFIX}jpeg${LIBEXT};${LIBDIR}/tiff/lib/${LIBPREFIX}tiff${LIBEXT};${LIBDIR}/openexr/lib/${LIBPREFIX}IlmImf-2_2${LIBEXT}")
        if("${CMAKE_SIZEOF_VOID_P}" EQUAL "4")
-               set(OSL_SIMD_FLAGS -DOIIO_SIMD=0)
+               set(OSL_SIMD_FLAGS -DOIIO_NOSIMD=1 -DOIIO_SIMD=0)
        else()
-               set(OSL_SIMD_FLAGS -DOIIO_SIMD=sse2)
+               set(OSL_SIMD_FLAGS -DOIIO_NOSIMD=1 -DOIIO_SIMD=sse2)
        endif()
 else()
        set(OSL_CMAKE_CXX_STANDARD_LIBRARIES)