File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ image: Visual Studio 2017
7
7
configuration : Release
8
8
clone_folder : c:\projects\openscap
9
9
install :
10
- - cmd : vcpkg install curl libxml2 libxslt bzip2 pcre pthreads zlib
10
+ - cmd : vcpkg install curl libxml2 libxslt bzip2 pcre pthreads zlib getopt-win32
11
11
cache : c:\tools\vcpkg\installed\
12
12
before_build :
13
13
- cmd : >-
Original file line number Diff line number Diff line change @@ -10,6 +10,17 @@ if(ENABLE_OSCAP_UTIL)
10
10
add_executable (oscap ${UTILS_SOURCES} )
11
11
target_link_libraries (oscap openscap )
12
12
if (WIN32 )
13
+ find_path (GETOPT_INCLUDE_DIR getopt.h )
14
+ include (SelectLibraryConfigurations )
15
+ find_library (GETOPT_LIBRARY_RELEASE NAMES getopt )
16
+ find_library (GETOPT_LIBRARY_DEBUG NAMES getopt PATH_SUFFIXES debug/lib )
17
+ select_library_configurations (GETOPT )
18
+
19
+ message ("GETOPT_INCLUDE_DIR: ${GETOPT_INCLUDE_DIR} " )
20
+ message ("GETOPT_LIBRARY: ${GETOPT_LIBRARY} " )
21
+
22
+ target_include_directories (oscap PRIVATE ${GETOPT_INCLUDE_DIR} )
23
+ target_link_libraries (oscap PRIVATE ${GETOPT_LIBRARY} )
13
24
set (OSCAP_UTIL_DESTINATION "." )
14
25
# Install the 'oscap' utility
15
26
install (TARGETS "oscap"
You can’t perform that action at this time.
0 commit comments