Changeset 8 in pacpusframework for trunk


Ignore:
Timestamp:
Jan 5, 2013, 9:44:35 PM (12 years ago)
Author:
sgosseli
Message:

Corrected the Findlog4cxx, optimized and debug libraries were not added properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/Findlog4cxx.cmake

    r3 r8  
    8686
    8787# Output variables
     88SET (LOG4CXX_LIBRARIES "")
    8889IF (LOG4CXX_FOUND)
    8990  # Include dirs
    9091  SET (LOG4CXX_INCLUDE_DIRS ${LOG4CXX_INCLUDE_DIR})
    9192
    92   # Libraries
     93  # Release Libraries
    9394  IF (LOG4CXX_LIBRARY)
    94     SET (LOG4CXX_LIBRARIES optimized ${LOG4CXX_LIBRARY} debug ${LOG4CXXD_LIBRARY})
    95   ELSE (LOG4CXX_LIBRARY)
    96     SET (LOG4CXX_LIBRARIES "")
    97   ENDIF (LOG4CXX_LIBRARY)
    98   IF (LOG4CXXD_LIBRARY)
    99     SET (LOG4CXX_LIBRARIES debug ${LOG4CXXD_LIBRARY} ${LOG4CXX_LIBRARIES})
    100   ENDIF (LOG4CXXD_LIBRARY)
     95    LIST(APPEND LOG4CXX_LIBRARIES optimized ${LOG4CXX_LIBRARY})
     96  ENDIF ()
     97 
     98  # Debug Libraries
     99  IF(LOG4CXXD_LIBRARY)
     100    LIST(APPEND LOG4CXX_LIBRARIES debug ${LOG4CXXD_LIBRARY})
     101  ENDIF()
    101102
    102103  # Link dirs
Note: See TracChangeset for help on using the changeset viewer.