Commit f5595696 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Fix the find project generator

parent 1a5accf9
Pipeline #130214 passed with stages
in 6 minutes and 5 seconds
......@@ -188,7 +188,6 @@ function(phoenix_create_find_full projectName listIncludeFile listLibrary listPr
endforeach(libraryName)
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")
file(APPEND ${findFileName} "else()\n")
file(APPEND ${findFileName} "\tmessage(FATAL_ERROR \"Libraries of ${PROJECT_NAME_UPPER} not found\")\n")
......@@ -223,6 +222,7 @@ function(phoenix_create_find_full projectName listIncludeFile listLibrary listPr
file(APPEND ${findFileName} "endif(${PROJECT_NAME_UPPER}_EXECUTABLE_DIR)\n")
file(APPEND ${findFileName} "\n\n")
endif()
file(APPEND ${findFileName} "set(${PROJECT_NAME_UPPER}_FOUND \"YES\" CACHE BOOL \"${PROJECT_NAME_UPPER} progect found\")\n")
file(APPEND ${findFileName} "${EXTRA_INCLUDE_CMAKE}\n\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