Skip to content
Snippets Groups Projects
Commit ef56f511 authored by Marcel Koch's avatar Marcel Koch
Browse files

use guard at correct place

parent 07690c76
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,9 @@ ...@@ -81,7 +81,9 @@
find_package(benchmark) find_package(benchmark)
find_package(likwid) if (DUNE_CODEGEN_PROFILING)
find_package(likwid)
endif()
add_custom_target(generation) add_custom_target(generation)
...@@ -209,9 +211,6 @@ function(add_generated_executable) ...@@ -209,9 +211,6 @@ function(add_generated_executable)
add_executable(${GEN_TARGET} ${GEN_EXCLUDE_FROM_ALL} ${GEN_SOURCE} ${header_deps}) add_executable(${GEN_TARGET} ${GEN_EXCLUDE_FROM_ALL} ${GEN_SOURCE} ${header_deps})
target_include_directories(${GEN_TARGET} PUBLIC ${CMAKE_CURRENT_BINARY_DIR}) target_include_directories(${GEN_TARGET} PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
add_dependencies(generation ${GEN_TARGET}) add_dependencies(generation ${GEN_TARGET})
if (DUNE_CODEGEN_PROFILING AND likwid_FOUND)
target_link_libraries(${GEN_TARGET} ${likwid_LIBRARIES})
endif ()
endfunction() endfunction()
include(GeneratedSystemtests) include(GeneratedSystemtests)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment