aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackBoosY <47264268+JackBoosY@users.noreply.github.com>2019-11-20 03:15:23 +0800
committerRobert Schumacher <roschuma@microsoft.com>2019-11-19 11:15:23 -0800
commita6f38607ba85b2ab52964726cc49a4bc08891f68 (patch)
tree92a731bdd9d777b467c921bf67f67bdbda2d6aff
parente916630f208b8069790e654fcc5bbf1b420eab46 (diff)
downloadvcpkg-a6f38607ba85b2ab52964726cc49a4bc08891f68.tar.gz
vcpkg-a6f38607ba85b2ab52964726cc49a4bc08891f68.zip
[libpopt]Fix linux build. (#8652)
-rw-r--r--ports/libpopt/CMakeLists.txt4
-rw-r--r--ports/libpopt/CONTROL2
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