Changeset 304 in pacpusframework for branches/0.1.x
- Timestamp:
- Apr 11, 2014, 12:10:12 PM (11 years ago)
- Location:
- branches/0.1.x
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.1.x/cmake/FindPacpus.cmake
r129 r304 9 9 10 10 # TODO: write the output variables of this CMake file. 11 12 # Check PACPUS_ROOT 13 if(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() 26 else() 27 string (REPLACE "\\" "/" PACPUS_ROOT ${PACPUS_ROOT}) 28 message(STATUS "Detected PACPUS_ROOT as argument with the path: '${PACPUS_ROOT}'") 29 endif() 30 11 31 12 32 # Locate the include files … … 41 61 endif() 42 62 43 get_filename_component(PACPUS_ROOT ${PACPUS_INCLUDE_DIR}/.. ABSOLUTE) 63 64 #get_filename_component(PACPUS_ROOT ${PACPUS_INCLUDE_DIR}/.. ABSOLUTE) 44 65 set(PACPUS_LIB_DIR ${PACPUS_ROOT}/lib) 45 66 … … 52 73 set(MODULE_MISSING FALSE) 53 74 set(PACPUS_LIBRARIES "") 75 76 message (${PACPUS_LIB_DIR}) 54 77 55 78 # Check the presence of each module
Note:
See TracChangeset
for help on using the changeset viewer.