From 278d2efd56dd7ddfacbf9a72191b49d6141a77f4 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Fri, 29 May 2020 10:57:41 -0400 Subject: [PATCH] force C linker --- misc/CMakeLists.txt | 1 - numerical_methods/CMakeLists.txt | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/CMakeLists.txt b/misc/CMakeLists.txt index 848dc622..2e335ccd 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 0f3b5974..b3f2fa3a 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)