[
https://issues.apache.org/jira/browse/LOGCXX-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17185193#comment-17185193
]
Thorsten Schöning commented on LOGCXX-510:
------------------------------------------
The more backslashes the better... :-D But things still didn't work for me:
Resolving log4cxx didn't work properly and expat wasn't found as well. Not sure
why log4cxx fails, but expat makes sense, because that was mentioned before,
only with some unknown variable. If it succeeds for you, this means it's part
of your PATH already for some reason. Should that be trusted? If APR etc. gets
configured, same should be made for expat. CMAKE did find arbitrary APR-DLLs in
my PATH already in the past, doesn't sound too reliable.
{noformat}
get_filename_component(APR_DLL_DIR "${APR_DLL}" DIRECTORY)
get_filename_component(APR_UTIL_DLL_DIR "${APR_UTIL_DLL}" DIRECTORY)
set(LOG4CXX_DLL_DIR "${CMAKE_INSTALL_PREFIX}\\bin")
set(XMLLIB_DLL_DIR
"C:\\Users\\tschoening\\Documents\\Svn\\Src\\Libs\\trunk\\C\\XML\\libexpat\\2.2.9\\src\\expat\\out\\install\\x64-Debug\\bin")
set(PATH_FOR_TESTS
${APR_DLL_DIR};${APR_UTIL_DLL_DIR};${LOG4CXX_DLL_DIR};${XMLLIB_DLL_DIR}\;)
{noformat}
The problem with the following line only is that "XMLLIB_DLL" doesn't seem to
be available yet:
{noformat}
get_filename_component(XMLLIB_DLL_DIR "${XMLLIB_DLL}" DIRECTORY)
{noformat}
> 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)