diff --git a/misc/CMakeLists.txt b/misc/CMakeLists.txt index 848dc6229..2e335ccd4 100644 --- a/misc/CMakeLists.txt +++ b/misc/CMakeLists.txt @@ -1,4 +1,3 @@ - if(USE_OPENMP) find_package(OpenMP) endif() diff --git a/numerical_methods/CMakeLists.txt b/numerical_methods/CMakeLists.txt index 0f3b5974c..b3f2fa3ab 100644 --- a/numerical_methods/CMakeLists.txt +++ b/numerical_methods/CMakeLists.txt @@ -20,6 +20,7 @@ foreach( testsourcefile ${APP_SOURCES} ) string( REPLACE " " "_" testname ${testname} ) add_executable( ${testname} ${testsourcefile} ) + set_target_properties( ${testname} PROPERTIES LINKER_LANGUAGE C) if(OpenMP_C_FOUND) target_link_libraries(${testname} OpenMP::OpenMP_C)