Skip to content

Commit afdc4e8

Browse files
author
Charles PIGNEROL
committed
Version 7.8.1 du 08/09/23. Correctif dépendance cmake à MachineTypes : propagation de la dépendance aux en-têtes.
1 parent 5ebb74a commit afdc4e8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

cmake/version.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
set (LIMA_MAJOR_VERSION "7")
66
set (LIMA_MINOR_VERSION "8")
7-
set (LIMA_RELEASE_VERSION "0")
7+
set (LIMA_RELEASE_VERSION "1")
88
set (LIMA_VERSION ${LIMA_MAJOR_VERSION}.${LIMA_MINOR_VERSION}.${LIMA_RELEASE_VERSION})
99

1010

src/Lima/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ if (${MachineTypes_FOUND})
7575
message (STATUS "======================> Utilisation de l'API MachineTypes")
7676
set (MachineTypes_ENABLED ON)
7777
target_link_libraries (Lima PUBLIC MachineTypes::include)
78+
if (MachineTypes_INCLUDE_DIR)
79+
target_include_directories (Lima PUBLIC ${MachineTypes_INCLUDE_DIR})
80+
elseif (MachineTypes_INCLUDE_DIRS)
81+
target_include_directories (Lima PUBLIC ${MachineTypes_INCLUDE_DIRS})
82+
else ( )
83+
# Si il y a une demande d'utilisation de MachineTypes ce peut être très important, ça défini entre autres les types des variables transmis en arguments des fonctions
84+
# => Pas le droit à l'erreur, on bloque donc en cas de doute.
85+
message (FATAL_ERROR "Variables MachineTypes_INCLUDE_DIRS et MachineTypes_INCLUDE_DIRS nulles.")
86+
endif ( )
7887
endif (${MachineTypes_FOUND})
7988

8089
set (LIMA_KERNEL_PUBLIC_FLAGS "${LIMA_CFLAGS}" LIMA_MT LIMA_USES_ATOMIC_API)

0 commit comments

Comments
 (0)