Commit 55234c38 authored by Bramas, Berenger (bbramas)'s avatar Bramas, Berenger (bbramas)

Merge branch 'update-install-hierarchy' into 'master'

Ensure install works, and remove wrong path for the headers

See merge request bbramas/inastemp!19
parents 5f1c2dd4 23ddd11f
......@@ -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