mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-09-24 07:54:25 +00:00
force C linker
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
if(USE_OPENMP)
|
||||
find_package(OpenMP)
|
||||
endif()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user