Skip to content
Snippets Groups Projects
Commit 913f8453 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

cmake: remove redundant option

parent 48a40e04
No related branches found
No related tags found
1 merge request!50Refactor CMake scripts
......@@ -15,7 +15,6 @@ option(BUILD_TESTING "Build tests" ON)
option(BUILD_EXAMPLES "Build examples" ON)
option(BUILD_DOCUMENTATION "Build documentation" OFF)
option(MT_ENABLE_MIXED_PRECISION "Use mixed precision" OFF)
option(MT_ENABLE_FORTRAN_HL "Enable high-level interface" ON)
# Set line limit to none for GNU compiler (default is 132) to enable long
......
......@@ -10,9 +10,6 @@ function(mtime_add_example test_name file_name)
add_executable("${test_name}" ${file_name} ${ARG_DEPENDS})
target_link_libraries("${test_name}" PRIVATE mtime::mtime ${ARG_LIBRARIES})
set_target_properties(${test_name} PROPERTIES Fortran_PREPROCESS ON)
if(MT_ENABLE_MIXED_PRECISION)
target_compile_definitions(${test_name} PRIVATE __MIXED_PRECISION)
endif()
endfunction()
mtime_add_example(callback_test callback_test.f90)
......
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