apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56616] New: CMakeLists.txt failed to support nmake
Date Thu, 12 Jun 2014 11:08:38 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56616

            Bug ID: 56616
           Summary: CMakeLists.txt failed to support nmake
           Product: APR
           Version: 1.5.3
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR-util
          Assignee: bugs@apr.apache.org
          Reporter: cliu81@gmail.com

I use cmake to generate "NMake Makefiles".
But it failed to build with below error:
H:\work\apr-util-1.5.3\libaprutil.rc(56) : error RC2104 : undefined keyword or
key name: apr_dbd_odbc\

The problem is the excessive \ & ".
It should be change to:

  IF(MSVC)
  SET_TARGET_PROPERTIES(apr_crypto_openssl-1 PROPERTIES COMPILE_FLAGS
"-DDLL_NAME=\"apr_crypto_openssl\"")
  ELSE()
  SET_TARGET_PROPERTIES(apr_crypto_openssl-1 PROPERTIES COMPILE_FLAGS
"-DDLL_NAME=\"\\\"apr_crypto_openssl\\\"\"")
  ENDIF()

  IF(MSVC)
  SET_TARGET_PROPERTIES(apr_dbd_odbc-1 PROPERTIES COMPILE_FLAGS
"-DDLL_NAME=\"apr_dbd_odbc\"")
  ELSE()
  SET_TARGET_PROPERTIES(apr_dbd_odbc-1 PROPERTIES COMPILE_FLAGS
"-DDLL_NAME=\"\\\"apr_dbd_odbc\\\"\"")
  ENDIF()

  IF(MSVC)
  SET_TARGET_PROPERTIES(apr_ldap-1 PROPERTIES COMPILE_FLAGS
"-DDLL_NAME=\"apr_ldap\"")
  ELSE()
  SET_TARGET_PROPERTIES(apr_ldap-1 PROPERTIES COMPILE_FLAGS
"-DDLL_NAME=\"\\\"apr_ldap\\\"\"")
  ENDIF()


This is the method used by CMakeLists.txt in httpd.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message