diff --git a/build/libde265.bat b/build/libde265.bat
index 8f7b0cd..610f85a 100644
--- a/build/libde265.bat
+++ b/build/libde265.bat
@@ -4,7 +4,5 @@ set arch=%1
set config=%2
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %arch%
cd ../third-party/libde265-%arch%
-mkdir build
-cd build
-cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=%config% ..
+cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=%config% .
nmake
\ No newline at end of file
diff --git a/build/libheif.bat b/build/libheif.bat
index 1038eef..f82d2e8 100644
--- a/build/libheif.bat
+++ b/build/libheif.bat
@@ -16,8 +16,8 @@ cmake -G"NMake Makefiles"^
-DJPEG_INCLUDE_DIR:PATH=%thirdPartyPath%\libjpeg-turbo-%arch%^
-DJPEG_LIBRARY_DEBUG:FILEPATH=%thirdPartyPath%\libjpeg-turbo-%arch%\jpeg.lib^
-DJPEG_LIBRARY_RELEASE:FILEPATH=%thirdPartyPath%\libjpeg-turbo-%arch%\jpeg.lib^
- -DLIBDE265_INCLUDE_DIR:PATH=%thirdPartyPath%\libde265-%arch%\build^
- -DLIBDE265_LIBRARY:FILEPATH=%thirdPartyPath%\libde265-%arch%\build\libde265\libde265.lib^
+ -DLIBDE265_INCLUDE_DIR:PATH=%thirdPartyPath%\libde265-%arch%^
+ -DLIBDE265_LIBRARY:FILEPATH=%thirdPartyPath%\libde265-%arch%\libde265\libde265.lib^
..
nmake
\ No newline at end of file
diff --git a/src/FileOnQ.Imaging.Heif/Build/libde265.targets b/src/FileOnQ.Imaging.Heif/Build/libde265.targets
index 50d529f..665f164 100644
--- a/src/FileOnQ.Imaging.Heif/Build/libde265.targets
+++ b/src/FileOnQ.Imaging.Heif/Build/libde265.targets
@@ -15,8 +15,8 @@
-
-
+
+