📣 An issue occured with the embedded container registry on October 25 2021, between 10:30 and 12:10 (UTC+2). Any persisting issues should be reported to CC-IN2P3 Support. 🐛

Commit 1d58f5e5 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Make the find appears only the first time cmake is called

parent 61b6294d
Pipeline #118989 passed with stages
in 56 seconds
......@@ -7,6 +7,14 @@
@PHOENIX_PACKAGE_PEDENDENCIES@
if(@PROJECT_NAME_UPPER@_FOUND)
link_directories(${@PROJECT_NAME_UPPER@_LIBRARY_DIR})
include_directories(${@PROJECT_NAME_UPPER@_INCLUDE_DIR} ${@PROJECT_NAME_UPPER@_INCLUDE_DIR}/../)
@EXTRA_INCLUDE_CMAKE@
return()
endif()
find_path(@PROJECT_NAME_UPPER@_INCLUDE_DIR
NAMES @headerFile@
PATHS "${@PROJECT_NAME_UPPER@_PREFIX}/include/@projectName@" ${CMAKE_INSTALL_PREFIX}/include/@projectName@
......
......@@ -7,6 +7,14 @@
@PHOENIX_PACKAGE_PEDENDENCIES@
if(@PROJECT_NAME_UPPER@_FOUND)
link_directories(${@PROJECT_NAME_UPPER@_LIBRARY_DIR})
include_directories(${@PROJECT_NAME_UPPER@_INCLUDE_DIR} ${@PROJECT_NAME_UPPER@_INCLUDE_DIR}/../)
@EXTRA_INCLUDE_CMAKE@
return()
endif()
find_path(@PROJECT_NAME_UPPER@_INCLUDE_DIR
NAMES @headerFile@
PATHS "${@PROJECT_NAME_UPPER@_PREFIX}/include/@projectName@" ${CMAKE_INSTALL_PREFIX}/include/@projectName@
......@@ -15,6 +23,7 @@ find_path(@PROJECT_NAME_UPPER@_INCLUDE_DIR
if(@PROJECT_NAME_UPPER@_INCLUDE_DIR)
message(STATUS "Found @PROJECT_NAME_UPPER@ headers : ${@PROJECT_NAME_UPPER@_INCLUDE_DIR}")
set(@PROJECT_NAME_UPPER@_INCLUDE_DIR "${@PROJECT_NAME_UPPER@_INCLUDE_DIR}" CACHE STRING "@PROJECT_NAME_UPPER@ include directory")
else(@PROJECT_NAME_UPPER@_INCLUDE_DIR)
message(FATAL_ERROR "@PROJECT_NAME_UPPER@ headers not found")
endif(@PROJECT_NAME_UPPER@_INCLUDE_DIR)
......@@ -39,6 +48,7 @@ find_path(@PROJECT_NAME_UPPER@_LIBRARY_DIR
if(@PROJECT_NAME_UPPER@_LIBRARY_DIR)
message(STATUS "Found lib @PROJECT_NAME_UPPER@ : ${@PROJECT_NAME_UPPER@_LIBRARY_DIR}")
set(@PROJECT_NAME_UPPER@_LIBRARY_DIR "${@PROJECT_NAME_UPPER@_LIBRARY_DIR}" CACHE STRING "@PROJECT_NAME_UPPER@ library directory")
else(@PROJECT_NAME_UPPER@_LIBRARY_DIR)
message(FATAL_ERROR "lib @PROJECT_NAME_UPPER@ not found")
endif(@PROJECT_NAME_UPPER@_LIBRARY_DIR)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment