[ 
https://issues.apache.org/jira/browse/LOGCXX-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17182714#comment-17182714
 ] 

Thorsten Schöning commented on LOGCXX-510:
------------------------------------------

I'm successfully able to build the lib now:  [^CMakeSettings.json] 

What doesn't properly work is running the tests using "ctest": That looks for 
DLLs for log4cxx and expat in some special directories only and can't find them 
there. The DLLs for APR and APR-Util are found, most likely because I simply 
configured their paths using APR_DLL and APR_UTIL_DLL. Can't find something 
similar for EXPAT and LOG4CXX itself, though. After copying the DLLs of EXPAT 
and LOG4CXX into one of the dirs CMAKE seems to use automatically, at least 
some tests start to run.

How is that supposed to work? Where does "ctest" look for DLLs by convention by 
default? Is that something CMAKE does by convention or do those directories 
need to be part of some "CMakeLists.txt" or ...? Some of the checked 
directories are part of the build, but don't look like they should contain the 
necessary DLLs automatically to me:

{quote}
C:\Users\tschoening\Documents\Svn\Src\Libs\trunk\C++\Logging\log4cxx\0.11.0-SNAPSHOT\src\out\build\x64-Debug\src\test\cpp
{quote}

> Build problems using CMAKE and Visual Studio 2019 Community
> -----------------------------------------------------------
>
>                 Key: LOGCXX-510
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-510
>             Project: Log4cxx
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 0.11.0
>            Reporter: Thorsten Schöning
>            Assignee: Thorsten Schöning
>            Priority: Major
>         Attachments: CMP00079.png, CMakeSettings.json, 
> cmake_settings_using_vs_gui.zip, missing_log4cxx_rc.png, 
> set_target_properties.png
>
>
> I just tested building log4cxx using CMAKE and Visual Studio 2019 Community. 
> Things failed and I want to use this bug to document everything that I've 
> found, because for some things I'm not sure how to handle them properly. Will 
> create a new branch to maintain the fixes I came along, so that those can at 
> best be later reviewed by others. The branch of interest is currently named 
> "logcxx_510_cmake_vs2019_compat".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to