Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ai-mannamalai opened this issue Feb 21, 2025 · 0 comments
Open

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

ai-mannamalai opened this issue Feb 21, 2025 · 0 comments

Comments

@ai-mannamalai
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant