Build fix for Windows

refs #7033
This commit is contained in:
Gunnar Beutner 2014-09-10 15:24:08 +02:00
parent dc4fe38d8f
commit 4dd886ebd5
2 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,10 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
add_executable(mkclass mkclass.cpp classcompiler.cpp classcompiler.hpp ${FLEX_class_lexer_OUTPUTS} ${BISON_class_parser_OUTPUTS})
if(WIN32)
target_link_libraries(mkclass shlwapi)
endif()
set_target_properties (
mkclass PROPERTIES
FOLDER Bin

View File

@ -26,6 +26,8 @@
#include <cstring>
#ifndef _WIN32
#include <libgen.h>
#else /* _WIN32 */
#include <shlwapi.h>
#endif /* _WIN32 */
using namespace icinga;