Source
305
305
mark_as_advanced (${PKGCOMP}_INCLUDE_DIR ${PKGCOMP}_LIBRARY)
306
306
307
307
# HACK For bug in CMake v3.0:
308
308
set (${PKGCOMP}_FOUND ${${PKGCOMPUP}_FOUND})
309
309
310
310
# Set return variables
311
311
if (${PKGCOMP}_FOUND)
312
312
set (${PKGCOMP}_INCLUDE_DIRS ${${PKGCOMP}_INCLUDE_DIR})
313
313
set (${PKGCOMP}_LIBRARIES ${${PKGCOMP}_LIBRARY})
314
314
endif ()
315
-
316
-
# Set cache variables
317
-
# set (${PKGCOMP}_FOUND ${${PKGCOMP}_FOUND}
318
-
# CACHE BOOL "Whether the ${PKGCOMP} package was found" FORCE)
319
-
# set (${PKGCOMP}_INCLUDE_DIR ${${PKGCOMP}_INCLUDE_DIR}
320
-
# CACHE PATH "Directory containing the ${PKGCOMP} include file" FORCE)
321
-
# set (${PKGCOMP}_INCLUDE_DIRS ${${PKGCOMP}_INCLUDE_DIRS}
322
-
# CACHE STRING "Include path for the ${PKGCOMP} package" FORCE)
323
-
# set (${PKGCOMP}_LIBRARY ${${PKGCOMP}_LIBRARY}
324
-
# CACHE FILEPATH "Location of the ${PKGCOMP} library file" FORCE)
325
-
# set (${PKGCOMP}_LIBRARIES ${${PKGCOMP}_LIBRARIES}
326
-
# CACHE STRING "Libraries for the ${PKGCOMP} package" FORCE)
327
-
# set (${PKGCOMP}_IS_SHARED ${${PKGCOMP}_IS_SHARED}
328
-
# CACHE BOOL "Whether the ${PKGCOMP} library is dynamic" FORCE)
329
315
330
316
# Set variables in parent scope
331
317
set (${PKGCOMP}_FOUND ${${PKGCOMP}_FOUND} PARENT_SCOPE)
332
318
set (${PKGCOMP}_INCLUDE_DIR ${${PKGCOMP}_INCLUDE_DIR} PARENT_SCOPE)
333
319
set (${PKGCOMP}_INCLUDE_DIRS ${${PKGCOMP}_INCLUDE_DIRS} PARENT_SCOPE)
334
320
set (${PKGCOMP}_LIBRARY ${${PKGCOMP}_LIBRARY} PARENT_SCOPE)
335
321
set (${PKGCOMP}_LIBRARIES ${${PKGCOMP}_LIBRARIES} PARENT_SCOPE)
336
322
set (${PKGCOMP}_IS_SHARED ${${PKGCOMP}_IS_SHARED} PARENT_SCOPE)
337
323
338
324
endif ()