Skip to content
Snippets Groups Projects
Commit b068a9d8 authored by Sam Yates's avatar Sam Yates Committed by Benjamin Cumming
Browse files

Do not build/use local modcc if ARB_MODCC set (#527)

Fixes #526.
parent a38e73f9
No related branches found
No related tags found
No related merge requests found
......@@ -18,10 +18,16 @@ if(ARB_WITH_PROFILING)
list(APPEND modcc_flags "--profile")
endif()
set(external_modcc)
if(ARB_WITH_EXTERNAL_MODCC)
set(external_modcc MODCC ${modcc})
endif()
build_modules(
${mechanisms}
SOURCE_DIR "${mod_srcdir}"
DEST_DIR "${mech_dir}"
${external_modcc}
MODCC_FLAGS -t cpu -t gpu ${modcc_flags}
GENERATES .hpp _cpu.cpp _gpu.cpp _gpu.cu
TARGET build_all_mods
......
......@@ -35,5 +35,7 @@ target_link_libraries(modcc libmodcc ext-tclap)
set_target_properties(modcc libmodcc PROPERTIES EXCLUDE_FROM_ALL ${ARB_WITH_EXTERNAL_MODCC})
install(TARGETS modcc RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
if (NOT ARB_WITH_EXTERNAL_MODCC)
install(TARGETS modcc RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment