Fix shlwapi include case and add the lib for linking when building for windows

c++11
k1ll 11 years ago
parent 31db37afd4
commit 00b7712a59

@ -170,6 +170,10 @@ if (GIT_CHECKOUT)
add_dependencies (components git-version)
endif (GIT_CHECKOUT)
if (WIN32)
target_link_libraries(components shlwapi)
endif()
# Fix for not visible pthreads functions for linker with glibc 2.15
if (UNIX AND NOT APPLE)
target_link_libraries(components ${CMAKE_THREAD_LIBS_INIT})

@ -6,9 +6,7 @@
#include <windows.h>
#include <shlobj.h>
#include <Shlwapi.h>
#pragma comment(lib, "Shlwapi.lib")
#include <shlwapi.h>
#include <boost/locale.hpp>
namespace bconv = boost::locale::conv;

Loading…
Cancel
Save