force C linker

This commit is contained in:
Krishna Vedala 2020-05-29 10:57:41 -04:00
parent ac87440b8a
commit 278d2efd56
2 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,3 @@
if(USE_OPENMP)
find_package(OpenMP)
endif()

View File

@ -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)