Changeset 304 in pacpusframework


Ignore:
Timestamp:
04/11/14 12:10:12 (10 years ago)
Author:
DHERBOMEZ Gérald
Message:

Branche 0.1.x: correction of macro FindPacpus, way to find PACPUS_ROOT bugged.

Location:
branches/0.1.x
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.1.x/cmake/FindPacpus.cmake

    r129 r304  
    99
    1010# TODO: write the output variables of this CMake file.
     11
     12# Check PACPUS_ROOT
     13if(NOT PACPUS_ROOT)
     14    if(NOT ENV{PACPUS_ROOT} STREQUAL "")
     15        set(PACPUS_ROOT $ENV{PACPUS_ROOT})
     16        string (REPLACE "\\" "/" PACPUS_ROOT ${PACPUS_ROOT})
     17        message(STATUS "Detected PACPUS_ROOT in environment, set to '${PACPUS_ROOT}'")
     18    else()
     19      if(PACPUS_FIND_REQUIRED)
     20        MESSAGE(FATAL_ERROR "Could'not find PACPUS_ROOT ")
     21      else()
     22        MESSAGE(STATUS "Could'not find PACPUS_ROOT ")
     23        return()
     24      endif()
     25    endif()
     26else()
     27    string (REPLACE "\\" "/" PACPUS_ROOT ${PACPUS_ROOT})
     28    message(STATUS "Detected PACPUS_ROOT as argument with the path: '${PACPUS_ROOT}'")
     29endif()
     30
    1131
    1232# Locate the include files
     
    4161endif()
    4262
    43 get_filename_component(PACPUS_ROOT ${PACPUS_INCLUDE_DIR}/.. ABSOLUTE)
     63
     64#get_filename_component(PACPUS_ROOT ${PACPUS_INCLUDE_DIR}/.. ABSOLUTE)
    4465set(PACPUS_LIB_DIR ${PACPUS_ROOT}/lib)
    4566
     
    5273set(MODULE_MISSING FALSE)
    5374set(PACPUS_LIBRARIES "")
     75
     76message (${PACPUS_LIB_DIR})
    5477
    5578# Check the presence of each module
Note: See TracChangeset for help on using the changeset viewer.