Build Environment: fix alembic, openvdb, ffmpeg, osl build on Linux.
[blender.git] / build_files / build_environment / cmake / osl.cmake
index b44ed63c72ede40929b5377fcb0b93adc0eed79e..469f0eee69da8c205a4f0a56902b96dc39144133 100644 (file)
@@ -73,10 +73,16 @@ set(OSL_EXTRA_ARGS
        -DUSE_LLVM_BITCODE=OFF
        -DUSE_PARTIO=OFF
        ${OSL_SIMD_FLAGS}
-       -DPUGIXML_HOME=${LIBDIR}/pugixml
        -DPARTIO_LIBRARIES=
 )
 
+if(WIN32)
+set(OSL_EXTRA_ARGS
+       ${OSL_EXTRA_FLAGS}
+       -DPUGIXML_HOME=${LIBDIR}/pugixml
+)
+endif()
+
 ExternalProject_Add(external_osl
        URL ${OSL_URI}
        DOWNLOAD_DIR ${DOWNLOAD_DIR}