From 5ab595b401b4bae5e5d648cbdcc2f9427f2d3053 Mon Sep 17 00:00:00 2001 From: Bertrand Coconnier Date: Sun, 3 Jul 2016 14:36:22 +0200 Subject: [PATCH] The Shlwapi library is now needed for the Windows build (required in simgear/misc/sg_dir.cxx which calls to PathIsDirectoryEmpty) --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ae70cc9d..bc7218c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -384,6 +384,7 @@ if(WIN32) set(HAVE_GETLOCALTIME 1) set( WINSOCK_LIBRARY "ws2_32.lib" ) + set( SHLWAPI_LIBRARY "Shlwapi.lib" ) set( RT_LIBRARY "winmm" ) endif(WIN32) @@ -428,6 +429,7 @@ set(TEST_LIBS_INTERNAL_CORE ${CMAKE_THREAD_LIBS_INIT} ${ZLIB_LIBRARY} ${WINSOCK_LIBRARY} + ${SHLWAPI_LIBRARY} ${RT_LIBRARY} ${DL_LIBRARY} ${COCOA_LIBRARY}