Commit 8cfb07d9 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Update find generator

parent 33b7cf18
Pipeline #126255 passed with stages
in 3 minutes and 16 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