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

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

Found the issue, a warning of CMAKE wasn't shown that my configured LIB-dirs 
were simply ignored:

{quote}
1> [CMake] -- Configuring done
1> [CMake] WARNING: Target "libaprutil-1" requests linking to directory 
"C:\Users\tschoening\Documents\Svn\Src\Libs\trunk\C\X-OS\APR\apr\1.7.0\src\out\install\x64-Debug\lib".
  Targets may link only to libraries.  CMake is dropping the item.
1> [CMake] WARNING: Target "libaprutil-1" requests linking to directory 
"C:/Users/tschoening/Documents/Svn/Src/Libs/trunk/C/XML/libexpat/2.2.9/src/expat/out/install/x64-Debug/lib".
  Targets may link only to libraries.  CMake is dropping the item.
1> [CMake] WARNING: Target "apr_ldap-1" requests linking to directory 
"C:\Users\tschoening\Documents\Svn\Src\Libs\trunk\C\X-OS\APR\apr\1.7.0\src\out\install\x64-Debug\lib".
  Targets may link only to libraries.  CMake is dropping the item.
1> [CMake] WARNING: Target "apr_ldap-1" requests linking to directory 
"C:/Users/tschoening/Documents/Svn/Src/Libs/trunk/C/XML/libexpat/2.2.9/src/expat/out/install/x64-Debug/lib".
  Targets may link only to libraries.  CMake is dropping the item.
1> [CMake] WARNING: Target "aprutil-1" requests linking to directory 
"C:\Users\tschoening\Documents\Svn\Src\Libs\trunk\C\X-OS\APR\apr\1.7.0\src\out\install\x64-Debug\lib".
  Targets may link only to libraries.  CMake is dropping the item.
1> [CMake] WARNING: Target "aprutil-1" requests linking to directory 
"C:/Users/tschoening/Documents/Svn/Src/Libs/trunk/C/XML/libexpat/2.2.9/src/expat/out/install/x64-Debug/lib".
  Targets may link only to libraries.  CMake is dropping the item.
1> [CMake] WARNING: Target "apr_dbd_odbc-1" requests linking to directory 
"C:\Users\tschoening\Documents\Svn\Src\Libs\trunk\C\X-OS\APR\apr\1.7.0\src\out\install\x64-Debug\lib".
  Targets may link only to libraries.  CMake is dropping the item.
1> [CMake] WARNING: Target "apr_dbd_odbc-1" requests linking to directory 
"C:/Users/tschoening/Documents/Svn/Src/Libs/trunk/C/XML/libexpat/2.2.9/src/expat/out/install/x64-Debug/lib".
  Targets may link only to libraries.  CMake is dropping the item.
1> [CMake] -- Generating done
{quote}

{quote}
1> [CMake] -- Configuring done
1> [CMake] WARNING: Target "libaprutil-1" requests linking to directory 
"C:/Users/tschoening/Documents/Svn/Src/Libs/trunk/C/XML/libexpat/2.2.9/src/expat/out/install/x64-Debug/lib".
  Targets may link only to libraries.  CMake is dropping the item.
1> [CMake] WARNING: Target "apr_ldap-1" requests linking to directory 
"C:/Users/tschoening/Documents/Svn/Src/Libs/trunk/C/XML/libexpat/2.2.9/src/expat/out/install/x64-Debug/lib".
  Targets may link only to libraries.  CMake is dropping the item.
1> [CMake] WARNING: Target "aprutil-1" requests linking to directory 
"C:/Users/tschoening/Documents/Svn/Src/Libs/trunk/C/XML/libexpat/2.2.9/src/expat/out/install/x64-Debug/lib".
  Targets may link only to libraries.  CMake is dropping the item.
1> [CMake] WARNING: Target "apr_dbd_odbc-1" requests linking to directory 
"C:/Users/tschoening/Documents/Svn/Src/Libs/trunk/C/XML/libexpat/2.2.9/src/expat/out/install/x64-Debug/lib".
  Targets may link only to libraries.  CMake is dropping the item.
1> [CMake] -- Generating done
{quote}

After changing the following line, creating the DLL seems to work now. Next 
step will be trying CMAKE with log4cxx, now that I know where I need to 
configure things.

{quote}
C:\Users\tschoening\Documents\Svn\Src\Libs\trunk\C\X-OS\APR\apr\1.7.0\src\out\install\x64-Debug\lib\
{quote}

vs.

{quote}
C:\Users\tschoening\Documents\Svn\Src\Libs\trunk\C\X-OS\APR\apr\1.7.0\src\out\install\x64-Debug\lib\libapr-1.lib
{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, 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