We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f47abe commit 3ad97deCopy full SHA for 3ad97de
CMakeLists.txt
@@ -19,8 +19,8 @@ elseif(${CMAKE_Fortran_COMPILER_ID} STREQUAL GNU)
19
find_package(OpenCoarrays)
20
21
if(OpenCoarrays_FOUND)
22
+ list(APPEND OpenCoarrays_LIBRARIES caf_mpi)
23
add_compile_options(-fcoarray=lib)
- link_libraries(caf_mpi)
24
else()
25
add_compile_options(-fcoarray=single)
26
endif()
@@ -32,6 +32,6 @@ add_library(lineclip lineclipping.f90)
32
target_link_libraries(lineclip)
33
34
add_executable(RunLineclip DemoLineclip.f90 assert.f90)
35
-target_link_libraries(RunLineclip lineclip)
+target_link_libraries(RunLineclip PRIVATE lineclip ${OpenCoarrays_LIBRARIES})
36
37
add_test(NAME clip COMMAND ./RunLineclip)
0 commit comments