Skip to content

Commit

Permalink
fix: update cmake file
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Oct 8, 2022
1 parent cb5c3bc commit 2bcb84a
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
cmake_minimum_required(VERSION 3.15)
cmake_policy(SET CMP0091 NEW)
cmake_policy(SET CMP0042 NEW)

project (jpeg-turbo)

# define NPI_VERSION
add_definitions(-DNAPI_VERSION=7)

cmake_minimum_required(VERSION 3.9)
cmake_policy(SET CMP0042 NEW)

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

0 comments on commit 2bcb84a

Please sign in to comment.