[
https://issues.apache.org/jira/browse/LOGCXX-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17258618#comment-17258618
]
Robert Middleton commented on LOGCXX-510:
-----------------------------------------
After some testing today, I have come to the conclusion that visual studio
really really doesn't like playing with CMake nicely, or perhaps just with the
way that we have configured cmake.
For me, I have been unable to get Visual Studio to actually let me build the
project - it seems to get stuck parsing the CMakeLists.txt(similar issue to
this:
[https://developercommunity.visualstudio.com/content/problem/432298/cmake-cmakesettingsjson-cmake-cancel-cache-generat.html])
This similar issue indicates that add_subdirectory may be the issue with
visual studio?
Anyway, I was able to get it it to build with QtCreator(which I'm familiar
with), and master worked fine using MSVC(I did not check using any
non-Microsoft compilers). Both master and your fixes work fine, so I have no
idea why things would randomly break for you. =/
> 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
> Fix For: 0.12.0
>
> Attachments: CMP00079.png, CMakeSettings.json, LOGCXX-510.patch,
> cmake_settings_using_vs_gui 02.png, 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)