mirror of
https://github.com/pocoproject/poco.git
synced 2025-12-10 18:14:58 +01:00
enh(Foundation): Windows Eventviewer not able to find PocoFoundation DLL #3304
This commit is contained in:
@@ -105,6 +105,8 @@ else()
|
||||
target_compile_definitions(Foundation PUBLIC UTF8PROC_STATIC)
|
||||
endif(POCO_UNBUNDLED)
|
||||
|
||||
target_compile_definitions(Foundation PUBLIC POCO_CMAKE)
|
||||
|
||||
target_include_directories(Foundation
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
|
||||
@@ -196,13 +196,13 @@ void EventLogChannel::setUpRegistry() const
|
||||
std::wstring path;
|
||||
#if defined(POCO_DLL)
|
||||
#if defined(_DEBUG)
|
||||
#if defined(_WIN64)
|
||||
#if defined(_WIN64) && !defined(POCO_CMAKE)
|
||||
path = findLibrary(L"PocoFoundation64d.dll");
|
||||
#else
|
||||
path = findLibrary(L"PocoFoundationd.dll");
|
||||
#endif
|
||||
#else
|
||||
#if defined(_WIN64)
|
||||
#if defined(_WIN64) && !defined(POCO_CMAKE)
|
||||
path = findLibrary(L"PocoFoundation64.dll");
|
||||
#else
|
||||
path = findLibrary(L"PocoFoundation.dll");
|
||||
|
||||
@@ -188,8 +188,10 @@ macro(POCO_MESSAGES out name)
|
||||
POCO_HEADERS( ${out} ${name} ${CMAKE_CURRENT_BINARY_DIR}/${hdr})
|
||||
|
||||
# Add the generated .rc
|
||||
source_group("${name}\\Resource Files" FILES ${CMAKE_CURRENT_BINARY_DIR}/${rc})
|
||||
list(APPEND ${out} ${CMAKE_CURRENT_BINARY_DIR}/${rc})
|
||||
if(BUILD_SHARED_LIBS)
|
||||
source_group("${name}\\Resource Files" FILES ${CMAKE_CURRENT_BINARY_DIR}/${rc})
|
||||
list(APPEND ${out} ${CMAKE_CURRENT_BINARY_DIR}/${rc})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set_source_files_properties(${ARGN} PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
|
||||
Reference in New Issue
Block a user