From c8ddf4d259a99a5dcbae0c2c199d5e4f06d5baaa Mon Sep 17 00:00:00 2001 From: yushulx Date: Mon, 13 Jan 2025 16:00:25 +0800 Subject: [PATCH] Update --- litecam/CMakeLists.txt | 1 - litecam/examples/barcode/CMakeLists.txt | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/litecam/CMakeLists.txt b/litecam/CMakeLists.txt index 5a22e13..559e379 100644 --- a/litecam/CMakeLists.txt +++ b/litecam/CMakeLists.txt @@ -13,7 +13,6 @@ set(INCLUDE_DIR ${CMAKE_SOURCE_DIR}/include) # Define source files for the Camera library if (WIN32) if (CMAKE_BUILD_TYPE STREQUAL "Debug") - set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g") set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDebug") else() set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded") diff --git a/litecam/examples/barcode/CMakeLists.txt b/litecam/examples/barcode/CMakeLists.txt index 075d369..22cec4e 100644 --- a/litecam/examples/barcode/CMakeLists.txt +++ b/litecam/examples/barcode/CMakeLists.txt @@ -2,8 +2,12 @@ cmake_minimum_required(VERSION 3.15) project(BarcodeScanner) if(WIN32) - # set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded") - # set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL") + if (CMAKE_BUILD_TYPE STREQUAL "Debug") + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDebug") + else() + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded") + endif() + if(CMAKE_BUILD_TYPE STREQUAL "Release") link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../dist/lib/windows/release ${CMAKE_CURRENT_SOURCE_DIR}/../../../examples/10.x/sdk/platforms/win/lib) else()