File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -47,22 +47,25 @@ include( Utils )
4747
4848option ( ENABLE_TESTING "Enable unit tests for the project (from the `test` subfolder)." OFF )
4949option ( ENABLE_PROFILING "Enable profiling for the project." OFF )
50+ option ( FETCH_LIBTOKAMAP "Fetch libtokamap as a dependency." OFF )
5051
5152# add_clang_format_target()
5253
5354if ( ENABLE_TESTING )
5455 enable_testing ()
5556endif ()
5657
57- include ( FetchContent )
58- FetchContent_Declare(
59- libtokamap
60- GIT_REPOSITORY https://github.com/ukaea/libtokamap.git
61- GIT_TAG develop
62- CMAKE_ARGS -DENABLE_TESTS=OFF -DENABLE_PROFILING=${ENABLE_PROFILING}
63- )
58+ if ( FETCH_LIBTOKAMAP )
59+ include ( FetchContent )
60+ FetchContent_Declare(
61+ libtokamap
62+ GIT_REPOSITORY https://github.com/ukaea/libtokamap.git
63+ GIT_TAG develop
64+ CMAKE_ARGS -DENABLE_TESTS=OFF -DENABLE_PROFILING=${ENABLE_PROFILING}
65+ )
6466
65- FetchContent_MakeAvailable( libtokamap )
67+ FetchContent_MakeAvailable( libtokamap )
68+ endif ()
6669
6770find_package ( UDA REQUIRED )
6871add_subdirectory ( mapping_plugin )
You can’t perform that action at this time.
0 commit comments