Skip to content

Commit

Permalink
fix: build without dependency on vc redist
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Mar 24, 2020
1 parent 35ac8ee commit fcfd704
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ cmake_minimum_required(VERSION 3.1)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

if(MSVC)
# Ensure jpeg-turbo is built without needing vc runtimes
set(WITH_CRT_DLL FALSE)
set(CMAKE_CXX_FLAGS_RELEASE "/MT")
set(CMAKE_CXX_FLAGS_DEBUG "/MTd")
endif()

include_directories(${CMAKE_JS_INC})

set(HEADER_FILES
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@julusian/jpeg-turbo",
"version": "0.5.3",
"version": "0.5.4-0",
"description": "Limited libjpeg-turbo bindings for Node.js.",
"keywords": [
"jpeg",
Expand Down

0 comments on commit fcfd704

Please sign in to comment.