IntelLabs / IntelLabs/encrypted-computing-sdk

c++ linkage against std++fs missing in CMakeLists.txt

Abierto
#62 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
71
Forks
5
Merge medio
7 h 3 min
PR fusionados (30 d)
2

Descripción

**Version Information (Put N/A for Not Applicable)**
| Software | Version(s) |
| ---------------------------| --------------- |
| Linux | RockyLinux 8 |
| Git | |
| CMake | 3.26 |
| Compiler (GCC, Clang, etc.)| clang 18.1.8 |
| Python | |
| Doxygen | |
| Kernel Generator | |
| Documentation | |

**Describe the bug**
c++ linkage against std++fs missing in CMakeLists.txt with a unknown linkage
```

```

**Solution**
```
--- a/functional_modeler/functional_modeler/CMakeLists.txt
+++ b/functional_modeler/functional_modeler/CMakeLists.txt
@@ -10,7 +10,7 @@ set(${PROJECT_NAME}_SOURCES

add_executable(functional_modeler ${${PROJECT_NAME}_SOURCES} ${IDE_HEADERS})
target_include_directories(functional_modeler PRIVATE ${INCLUDE_DIRS})
-target_link_libraries(functional_modeler PUBLIC nlohmann_json::nlohmann_json snap OpenMP::OpenMP_CXX common)
+target_link_libraries(functional_modeler PUBLIC nlohmann_json::nlohmann_json snap OpenMP::OpenMP_CXX common stdc++fs)
if(ENABLE_DATA_FORMATS)
target_link_libraries(functional_modeler PUBLIC HERACLES_DATA_FORMATS::heracles_data_formats)
endif()
diff --git a/functional_modeler/functional_modeler/function
```

**To Reproduce**

**Expected behavior**
Build to be completed correctly.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Abre functional_modeler/functional_modeler/CMakeLists.txt e inspecciona la declaración de target_link_libraries para functional_modeler. Compila el proyecto en el entorno indicado de RockyLinux 8 y Clang 18.1.8 y verifica después que la vinculación faltante de filesystem ya no provoque el error de compilación por vinculación desconocida.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
cmake, cpp
Área
build-system
Tipo de issue
Error
Dificultad
1/5
Tiempo estimado
Menos de una hora
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.