[libpopt]Fix linux build. (#8652)

This commit is contained in:
JackBoosY 2019-11-20 03:15:23 +08:00 committed by Robert Schumacher
parent e916630f20
commit a6f38607ba
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -1,3 +1,3 @@
Source: libpopt
Version: 1.16-11
Version: 1.16-12
Description: Library for parsing command line parameters