Commit 23ddd11f authored by Berenger Bramas's avatar Berenger Bramas

Ensure install works, and remove wrong path for the headers

parent 5f1c2dd4
......@@ -20,7 +20,8 @@ file(
FOREACH(hpp_file ${hpp_in_dir})
file(RELATIVE_PATH relative_hpp_file ${CMAKE_CURRENT_SOURCE_DIR} ${hpp_file})
if(INASTEMP_DO_INSTALL)
INSTALL( FILES ${hpp_file} DESTINATION include/${relative_hpp_file} )
get_filename_component(relative_hpp_dir ${relative_hpp_file} DIRECTORY)
INSTALL( FILES "${hpp_file}" DESTINATION "include/${relative_hpp_dir}" )
endif()
if($ENV{VERBOSE})
......@@ -29,6 +30,6 @@ FOREACH(hpp_file ${hpp_in_dir})
ENDFOREACH()
if(INASTEMP_DO_INSTALL)
INSTALL( FILES "${INASTEMP_BINARY_DIR}/Src/InastempConfig.h" DESTINATION include/Src )
INSTALL( FILES "${INASTEMP_BINARY_DIR}/Src/InastempCompileConfig.h" DESTINATION "include/" )
endif()
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