[CMAKE]
[reactos.git] / dll / 3rdparty / libjpeg / CMakeLists.txt
index 1c78830..646af89 100644 (file)
@@ -61,8 +61,13 @@ add_library(libjpeg SHARED
 
 set_entrypoint(libjpeg 0)
 
-add_importlibs(libjpeg msvcrt)
+if(MSVC)
+# for _fltused
+target_link_libraries(libjpeg mingw_common)
+endif()
 
-add_dependencies(libjpeg psdk buildno_header)
+add_importlibs(libjpeg msvcrt kernel32)
 
-add_cab_target(libjpeg 1)
+add_dependencies(libjpeg psdk)
+
+add_cd_file(TARGET libjpeg DESTINATION reactos/system32)