Changeset 80 in pacpusframework for trunk/cmake/FindPacpus.cmake


Ignore:
Timestamp:
02/20/13 12:10:18 (11 years ago)
Author:
morasjul
Message:

minor fix cocerning FindPacpus in case or Pacpus not found but not required
minor fix concerning -fpic option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/FindPacpus.cmake

    r64 r80  
    1515        set(PACPUS_ROOT $ENV{PACPUS_ROOT})
    1616        message(STATUS "Detected PACPUS_ROOT, set to '${PACPUS_ROOT}'")
     17    else()
     18      if(PACPUS_FIND_REQUIRED)
     19        MESSAGE(FATAL_ERROR "Could'not find PACPUS_ROOT ")
     20      else()
     21        MESSAGE(STATUS "Could'not find PACPUS_ROOT ")
     22        return()
     23      endif()
    1724    endif()
    1825endif()
    1926
    20 # Configure Pacpus
    21 include(${PACPUS_ROOT}/cmake/PacpusUtilities.cmake)
    22 include(${PACPUS_ROOT}/cmake/PacpusConfiguration.cmake)
    23 include(${PACPUS_ROOT}/cmake/PacpusDependencies.cmake)
    24 include(${PACPUS_ROOT}/cmake/PacpusPlatforms.cmake)
     27
    2528
    2629# Hint directories
     
    7578if(NOT MODULE_MISSING AND PACPUS_INCLUDE_DIR)
    7679    set(PACPUS_FOUND TRUE)
     80
     81    # Configure Pacpus
     82    list(APPEND CMAKE_MODULE_PATH "${PACPUS_ROOT}/cmake")
     83    include(${PACPUS_ROOT}/cmake/PacpusUtilities.cmake)
     84    include(${PACPUS_ROOT}/cmake/PacpusConfiguration.cmake)
     85    include(${PACPUS_ROOT}/cmake/PacpusDependencies.cmake)
     86    include(${PACPUS_ROOT}/cmake/PacpusPlatforms.cmake)
     87
     88    #set(CMAKE_INSTALL_PREFIX ${PACPUS_ROOT})
     89    set(PACPUS_INSTALL_DIR ${PACPUS_ROOT})
     90    set(PACPUS_LIB_DIR "${PACPUS_ROOT}/lib"
     91)
     92    MESSAGE(STATUS "PACPUS_ROOT found ${PACPUS_ROOT}")
     93
    7794else()
    7895    set(PACPUS_FOUND FALSE)
     96
     97    if(PACPUS_FIND_REQUIRED)
     98      MESSAGE(FATAL_ERROR "Could'not find PACPUS_ROOT ")
     99    else()
     100      MESSAGE(STATUS "Could'not find PACPUS_ROOT ")
     101    endif()
     102
    79103endif()
Note: See TracChangeset for help on using the changeset viewer.