1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-07 16:25:01 +03:00

Link to Windows libraries in CMake project, remove related #pragma directives

In addition to making the code cleaner, this also prevents potential issues due to #pragma directives being in headers.
This commit is contained in:
Davide Beatrici
2021-02-28 20:32:25 +01:00
parent ec201f340a
commit dbd4dd5ae7
7 changed files with 3 additions and 34 deletions

View File

@ -27,6 +27,7 @@ if(WIN32)
)
target_include_directories(cedar PRIVATE winpcap)
target_link_libraries(cedar PRIVATE comctl32.lib urlmon.lib)
endif()
if(UNIX)

View File

@ -14,11 +14,6 @@
#endif // WIN32COM_CPP
// For external function
#pragma comment(lib,"htmlhelp.lib")
#pragma comment(lib,"Urlmon.lib")
#if defined(__cplusplus)
extern "C"
{

View File

@ -80,9 +80,6 @@ extern "C"
//#include <propvarutil.h>
//#include <knownfolders.h>
//#include <shlobj.h>
//
//#pragma comment(lib, "propsys.lib")
//#pragma comment(lib, "shlwapi.lib")
#define CREATE_PROPERTYKEY(l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid }