@@ -682,13 +682,13 @@ function(ign_install_all_headers)
682
682
683
683
# Add each header, prefixed by its directory, to the auto headers variable
684
684
foreach (header ${headers} )
685
- set (ign_headers "${ign_headers} #include <ignition/ ${IGN_DESIGNATION } /${header} >\n " )
685
+ set (ign_headers "${ign_headers} #include <${PROJECT_INCLUDE_DIR } /${header} >\n " )
686
686
endforeach ()
687
687
688
688
if ("." STREQUAL ${dir} )
689
- set (destination "${IGN_INCLUDE_INSTALL_DIR_FULL} /ignition/ ${IGN_DESIGNATION } " )
689
+ set (destination "${IGN_INCLUDE_INSTALL_DIR_FULL} /${PROJECT_INCLUDE_DIR } " )
690
690
else ()
691
- set (destination "${IGN_INCLUDE_INSTALL_DIR_FULL} /ignition/ ${IGN_DESIGNATION } /${dir} " )
691
+ set (destination "${IGN_INCLUDE_INSTALL_DIR_FULL} /${PROJECT_INCLUDE_DIR } /${dir} " )
692
692
endif ()
693
693
694
694
install (
@@ -700,15 +700,15 @@ function(ign_install_all_headers)
700
700
701
701
# Add generated headers to the list of includes
702
702
foreach (header ${ign_install_all_headers_GENERATED_HEADERS} )
703
- set (ign_headers "${ign_headers} #include <ignition/ ${IGN_DESIGNATION } /${header} >\n " )
703
+ set (ign_headers "${ign_headers} #include <${PROJECT_INCLUDE_DIR } /${header} >\n " )
704
704
endforeach ()
705
705
706
706
if (ign_install_all_headers_COMPONENT)
707
707
708
708
set (component_name ${ign_install_all_headers_COMPONENT} )
709
709
710
710
# Define the install directory for the component meta header
711
- set (meta_header_install_dir ${IGN_INCLUDE_INSTALL_DIR_FULL} /ignition/ ${IGN_DESIGNATION } /${component_name} )
711
+ set (meta_header_install_dir ${IGN_INCLUDE_INSTALL_DIR_FULL} /${PROJECT_INCLUDE_DIR } /${component_name} )
712
712
713
713
# Define the input/output of the configuration for the component "master" header
714
714
set (master_header_in ${IGNITION_CMAKE_DIR} /ign_auto_headers.hh.in)
@@ -717,7 +717,7 @@ function(ign_install_all_headers)
717
717
else ()
718
718
719
719
# Define the install directory for the core master meta header
720
- set (meta_header_install_dir ${IGN_INCLUDE_INSTALL_DIR_FULL} /ignition/ ${IGN_DESIGNATION } )
720
+ set (meta_header_install_dir ${IGN_INCLUDE_INSTALL_DIR_FULL} /${PROJECT_INCLUDE_DIR } )
721
721
722
722
# Define the input/output of the configuration for the core "master" header
723
723
set (master_header_in ${IGNITION_CMAKE_DIR} /ign_auto_headers.hh.in)
@@ -936,7 +936,7 @@ function(ign_create_core_library)
936
936
# Create the target for the core library, and configure it to be installed
937
937
_ign_add_library_or_component(
938
938
LIB_NAME ${PROJECT_LIBRARY_TARGET_NAME}
939
- INCLUDE_DIR "ignition/ ${IGN_DESIGNATION_LOWER } "
939
+ INCLUDE_DIR "${PROJECT_INCLUDE_DIR } "
940
940
EXPORT_BASE IGNITION_${IGN_DESIGNATION_UPPER}
941
941
SOURCES ${sources}
942
942
${interface_option} )
@@ -1120,7 +1120,7 @@ function(ign_add_component component_name)
1120
1120
# Create the target for this component, and configure it to be installed
1121
1121
_ign_add_library_or_component(
1122
1122
LIB_NAME ${component_target_name}
1123
- INCLUDE_DIR "ignition/ ${IGN_DESIGNATION_LOWER } /${include_subdir} "
1123
+ INCLUDE_DIR "${PROJECT_INCLUDE_DIR } /${include_subdir} "
1124
1124
EXPORT_BASE IGNITION_${IGN_DESIGNATION_UPPER} _${component_name_upper}
1125
1125
SOURCES ${sources}
1126
1126
${interface_option} )
0 commit comments