moving #pragma comment statements to CMakeLists (#2904)

This commit is contained in:
Nick Anderson 2017-01-11 16:54:13 -08:00 committed by GitHub
parent 5097dfe775
commit 57a6a9441e
4 changed files with 4 additions and 6 deletions

View File

@ -37,6 +37,10 @@ elseif(FREEBSD)
ADD_OSQUERY_LINK_ADDITIONAL("elf")
ADD_OSQUERY_LINK_ADDITIONAL("magic")
elseif(WINDOWS)
# Additional Windows libraries
ADD_OSQUERY_LINK_ADDITIONAL("Advapi32.lib")
ADD_OSQUERY_LINK_ADDITIONAL("version.lib")
# Windows specific tables
file(GLOB OSQUERY_WINDOWS_TABLES "*/windows/*.cpp")
ADD_OSQUERY_LIBRARY_ADDITIONAL(osquery_tables_windows

View File

@ -20,8 +20,6 @@
#include "osquery/tables/system/windows/registry.h"
#pragma comment(lib, "Advapi32.lib")
namespace osquery {
namespace tables {

View File

@ -17,8 +17,6 @@
#include "osquery/filesystem/fileops.h"
#include "osquery/tables/system/windows/registry.h"
#pragma comment(lib, "version.lib")
namespace osquery {
namespace tables {

View File

@ -20,8 +20,6 @@
#include "osquery/tables/system/windows/registry.h"
#pragma comment(lib, "Advapi32.lib")
namespace osquery {
namespace tables {