From 2bcb84a3f0b08a2de5929d8d8ce2536e4e4ae6d5 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Sat, 8 Oct 2022 14:30:25 +0100 Subject: [PATCH] fix: update cmake file --- CMakeLists.txt | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 37b4759..3629c6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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