Skip to content

Commit

Permalink
fix cmake for roco2
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Jan 22, 2025
1 parent d7a9023 commit 990ee39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/InstallHwloc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ if (FIRESTARTER_BUILD_HWLOC)
endif()
endif()

include_directories(${HWLOC_INCLUDE_DIR}/include)
add_dependencies(hwloc HwlocInstall)
target_include_directories(hwloc INTERFACE ${HWLOC_INCLUDE_DIR}/include)
endif()
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ add_library(firestartercore STATIC
firestarter/X86/Payload/SSE2Payload.cpp
)

target_include_directories(firestartercore PUBLIC ${PROJECT_SOURCE_DIR}/include)

target_link_libraries(firestartercore
hwloc
AsmJit::AsmJit
Expand All @@ -53,6 +55,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
firestarter/Optimizer/Util/MultiObjective.cpp
firestarter/Optimizer/Algorithm/NSGA2.cpp
)

target_include_directories(firestarterlinux PUBLIC ${PROJECT_SOURCE_DIR}/include)

target_link_libraries(firestarterlinux
Nitro::log
Expand Down

0 comments on commit 990ee39

Please sign in to comment.