File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,6 @@ elseif(${CMAKE_Fortran_COMPILER_ID} STREQUAL GNU)
4343 endif ()
4444endif ()
4545
46- add_library (lineclip lineclipping.f90)
47- target_compile_options (lineclip PRIVATE ${FFLAGS} )
48-
4946set (okcomp GNU Intel)
5047if (CMAKE_Fortran_COMPILER_ID IN_LIST okcomp)
5148 add_library (assert assert.f90)
@@ -54,6 +51,10 @@ else()
5451endif ()
5552target_compile_options (assert PRIVATE ${FFLAGS} )
5653
54+ add_library (lineclip lineclipping.f90)
55+ target_compile_options (lineclip PRIVATE ${FFLAGS} )
56+ target_link_libraries (lineclip PRIVATE assert)
57+
5758add_executable (RunLineclip DemoLineclip.f90)
5859target_compile_options (RunLineclip PRIVATE ${FFLAGS} )
5960target_link_libraries (RunLineclip PRIVATE assert lineclip ${OpenCoarrays_LIBRARIES} )
You can’t perform that action at this time.
0 commit comments