From a6f38607ba85b2ab52964726cc49a4bc08891f68 Mon Sep 17 00:00:00 2001 From: JackBoosY <47264268+JackBoosY@users.noreply.github.com> Date: Wed, 20 Nov 2019 03:15:23 +0800 Subject: [libpopt]Fix linux build. (#8652) --- ports/libpopt/CMakeLists.txt | 4 +++- ports/libpopt/CONTROL | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ports/libpopt/CMakeLists.txt b/ports/libpopt/CMakeLists.txt index 84afc160d..5348757b4 100644 --- a/ports/libpopt/CMakeLists.txt +++ b/ports/libpopt/CMakeLists.txt @@ -46,7 +46,9 @@ add_definitions(-D_CRT_SECURE_NO_WARNINGS) include_directories(${CMAKE_BINARY_DIR}) add_library(popt ${SOURCES}) -set_target_properties(popt PROPERTIES COMPILE_FLAGS "/wd4996") +if (MSVC) + target_compile_options(popt PRIVATE /wd4996) +endif() install(TARGETS popt RUNTIME DESTINATION bin diff --git a/ports/libpopt/CONTROL b/ports/libpopt/CONTROL index 70cf3dae9..03cd3e374 100644 --- a/ports/libpopt/CONTROL +++ b/ports/libpopt/CONTROL @@ -1,3 +1,3 @@ Source: libpopt -Version: 1.16-11 +Version: 1.16-12 Description: Library for parsing command line parameters -- cgit v1.2.3