📣 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 1a95ef3f authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Update find generator

parent 7abe473a
Pipeline #126240 passed with stages
in 1 minute and 17 seconds
......@@ -104,6 +104,7 @@ function(phoenix_create_find_full projectName listIncludeFile listLibrary listPr
set(EXTRA_INCLUDE_CMAKE "")
else()
set(EXTRA_INCLUDE_CMAKE "include(${CMAKE_MODULE_PATH}/${extraIncludeFile})")
install(FILES ${extraIncludeFile} DESTINATION share/cmake)
endif()
file(WRITE ${findFileName} "\n")
......@@ -185,7 +186,7 @@ function(phoenix_create_find_full projectName listIncludeFile listLibrary listPr
foreach(libraryName ${listLibrary})
file(APPEND ${findFileName} " ${libraryName}")
endforeach(libraryName)
file(APPEND ${findFileName} " ${EXTRA_DEPENDENCIES_LIB} CACHE PATHS \"${PROJECT_NAME_UPPER} libraries and dependencies\")\n")
file(APPEND ${findFileName} " ${EXTRA_DEPENDENCIES_LIB} CACHE STRING \"${PROJECT_NAME_UPPER} libraries and dependencies\")\n")
file(APPEND ${findFileName} "\tset(${PROJECT_NAME_UPPER}_FOUND \"YES\" CACHE BOOL \"${PROJECT_NAME_UPPER} progect found\")\n")
file(APPEND ${findFileName} "\tlink_directories(\${${PROJECT_NAME_UPPER}_LIBRARY_DIR})\n")
......
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