Changeset 50 in pacpusframework for trunk/cmake/PacpusDependencies.cmake


Ignore:
Timestamp:
Jan 9, 2013, 9:06:15 AM (12 years ago)
Author:
Marek Kurdej
Message:

CMake: updated to conform to the coding style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/PacpusDependencies.cmake

    r38 r50  
    3131# log4cxx
    3232# ========================================
    33 if (PACPUS_USE_LOG)
    34   find_package(log4cxx REQUIRED)
     33if(PACPUS_USE_LOG)
     34    find_package(log4cxx REQUIRED)
    3535
    36   list(APPEND PACPUS_DEFINITIONS " -DPACPUS_USE_LOG ")
    37   list(APPEND PACPUS_DEPENDENCIES_INC ${LOG4CXX_INCLUDE_DIRS})
    38   list(APPEND PACPUS_DEPENDENCIES_LIB ${LOG4CXX_LIBRARIES})
     36    list(APPEND PACPUS_DEFINITIONS " -DPACPUS_USE_LOG ")
     37    list(APPEND PACPUS_DEPENDENCIES_INC ${LOG4CXX_INCLUDE_DIRS})
     38    list(APPEND PACPUS_DEPENDENCIES_LIB ${LOG4CXX_LIBRARIES})
    3939
    40   # If needed, install the dll of log4cxx
    41   if (WIN32 AND MSVC AND IS_BUILDING_PACPUS)
    42     pacpus_get_msvc(MSVC_VERSION)
    43     pacpus_purge_backslash(LOG4CXX_ROOT)
     40    # If needed, install the dll of log4cxx
     41    if(WIN32 AND MSVC AND IS_BUILDING_PACPUS)
     42        pacpus_get_msvc(MSVC_VERSION)
     43        pacpus_purge_backslash(LOG4CXX_ROOT)
    4444
    45     install(
    46       FILES
    47         ${LOG4CXX_ROOT}/bin/${MSVC_VERSION}/log4cxx.dll
    48         ${LOG4CXX_ROOT}/bin/${MSVC_VERSION}/log4cxx_d.dll
    49       DESTINATION
    50         ${PACPUS_INSTALL_DIR}/bin
    51     )
    52   endif()
     45        install(
     46            FILES
     47                ${LOG4CXX_ROOT}/bin/${MSVC_VERSION}/log4cxx.dll
     48                ${LOG4CXX_ROOT}/bin/${MSVC_VERSION}/log4cxx_d.dll
     49            DESTINATION
     50                ${PACPUS_INSTALL_DIR}/bin
     51        )
     52    endif()
    5353endif()
    5454
     
    5656# Doxygen
    5757# ========================================
    58 if (PACPUS_BUILD_DOC)
    59   find_package(Doxygen)
    60   if (NOT DOXYGEN_FOUND)
    61     message(FATAL_ERROR "Doxygen is needed to build the documentation. Please install it correctly")
    62   endif()
     58if(PACPUS_BUILD_DOC)
     59    find_package(Doxygen)
     60    if(NOT DOXYGEN_FOUND)
     61        message(FATAL_ERROR "Doxygen is needed to build the documentation. Please install it correctly")
     62    endif()
    6363endif()
Note: See TracChangeset for help on using the changeset viewer.