mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
force C linker
This commit is contained in:
parent
ac87440b8a
commit
278d2efd56
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user