Skip to content

Commit f2fd28a

Browse files
committed
Large CMake modernization effort
- The pillars of modern CMake are to avoid the following commands: 1. add_definitions 2. add_compile_options 3. include_directories 4. link_directories 5. link_libraries - These have been eliminated in most places, except top level CMakeLists.txt - Use instead, e.g.,: - target_compile_definitions - target_include_directories - target_link_libraries - target_compile_options
1 parent eb94677 commit f2fd28a

File tree

6 files changed

+167
-102
lines changed

6 files changed

+167
-102
lines changed

CMakeLists.txt

Lines changed: 43 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
cmake_minimum_required(VERSION 3.2)
1+
cmake_minimum_required(VERSION 3.4)
22

3-
if(POLICY CMP0075)
4-
cmake_policy(SET CMP0075 NEW)
5-
endif()
3+
cmake_policy(VERSION 3.4...3.12)
64

75
# Set the type/configuration of build to perform
86
set ( CMAKE_CONFIGURATION_TYPES "Debug" "Release" "MinSizeRel" "RelWithDebInfo" "CodeCoverage" )
@@ -65,9 +63,8 @@ if((NOT (OpenCoarraysVersion MATCHES "[0-9]+\\.[0-9]+\\.[0-9]+(-rc[0-9]+)?")) AN
6563
endif()
6664
# Create a source distribution target using git archive
6765
# e.g., `make dist` will package a release using current git state
68-
add_custom_target(dist # OUTPUT "${CMAKE_BINARY_DIR}/${_OC_stem_name}.tar.gz"
66+
add_custom_target(dist
6967
COMMAND "${CMAKE_COMMAND}" -P "${CMAKE_SOURCE_DIR}/cmake/makeDist.cmake" "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}"
70-
COMMENT "Creating source release asset, ${_OC_stem_name}.tar.gz, from ${git_full_describe} using the `git archive` command."
7168
VERBATIM)
7269
else()
7370
message( WARNING "Could not find git executable!")
@@ -115,6 +112,17 @@ if ("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
115112
)
116113
endif()
117114

115+
# Silence warnings about dereferencing unset variables
116+
if(NOT CMAKE_REQUIRED_FLAGS)
117+
set(CMAKE_REQUIRED_FLAGS "")
118+
endif()
119+
if(NOT CMAKE_REQUIRED_LIBRARIES)
120+
set(CMAKE_REQUIRED_LIBRARIES "")
121+
endif()
122+
if(NOT CMAKE_REQUIRED_INCLUDES)
123+
set(CMAKE_REQUIRED_INCLUDES "")
124+
endif()
125+
118126
#Report untested Fortran compiler unless explicitly directed to build all examples.
119127
if ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "GNU" )
120128
set(gfortran_compiler true)
@@ -203,7 +211,7 @@ endif()
203211

204212
if(gfortran_compiler)
205213
set(OLD_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
206-
set(CMAKE_REQUIRED_FLAGS "-fcoarray=single -ffree-form")
214+
set(CMAKE_REQUIRED_FLAGS $<$<COMPILE_LANGUAGE:Fortran>:"-fcoarray=single -ffree-form">)
207215
endif()
208216
include(CheckFortranSourceCompiles)
209217
CHECK_Fortran_SOURCE_COMPILES("
@@ -459,6 +467,18 @@ endif()
459467
#----------------
460468
# Setup MPI flags
461469
#----------------
470+
if(NOT CMAKE_C_COMPILE_FLAGS)
471+
set(CMAKE_C_COMPILE_FLAGS "")
472+
endif()
473+
if(NOT CMAKE_C_LINK_FLAGS)
474+
set(CMAKE_C_LINK_FLAGS "")
475+
endif()
476+
if(NOT CMAKE_Fortran_COMPILE_FLAGS)
477+
set(CMAKE_Fortran_COMPILE_FLAGS "")
478+
endif()
479+
if(NOT CMAKE_Fortran_LINK_FLAGS)
480+
set(CMAKE_Fortran_LINK_FLAGS "")
481+
endif()
462482
set(CMAKE_C_COMPILE_FLAGS "${CMAKE_C_COMPILE_FLAGS} ${MPI_C_COMPILE_FLAGS}")
463483
set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} ${MPI_C_LINK_FLAGS}")
464484
set(CMAKE_Fortran_COMPILE_FLAGS "${CMAKE_Fortran_COMPILE_FLAGS} ${MPI_Fortran_COMPILE_FLAGS}")
@@ -485,9 +505,14 @@ install(FILES "${CMAKE_SOURCE_DIR}/doc/man/man1/caf.1" "${CMAKE_SOURCE_DIR}/doc/
485505
#---------------------------------------------------
486506
# Define macro for compiling with caf wrapper script
487507
#---------------------------------------------------
508+
if(APPLE)
509+
find_program(CODESIGN codesign)
510+
endif()
511+
488512
function(caf_compile_executable target main_depend)
489-
foreach(includedir IN LISTS MPI_Fortran_INCLUDE_PATH)
490-
set(includes ${includes} -I ${includedir})
513+
set(includes "")
514+
foreach(includedir ${MPI_Fortran_INCLUDE_PATH})
515+
list(APPEND includes "-I${includedir}")
491516
endforeach()
492517
string(TOUPPER "${CMAKE_BUILD_TYPE}" build_type)
493518
separate_arguments(config_Fortran_flags UNIX_COMMAND "${CMAKE_Fortran_FLAGS_${build_type}}")
@@ -496,11 +521,14 @@ function(caf_compile_executable target main_depend)
496521
foreach(d ${DirDefs})
497522
list(APPEND localDefs "-D${d}")
498523
endforeach()
499-
add_custom_command(OUTPUT "${target}"
500-
COMMAND "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}/caf" ${includes} ${localDefs} ${config_Fortran_flags} -o "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${target}" "${CMAKE_CURRENT_SOURCE_DIR}/${main_depend}" ${ARGN}
501-
DEPENDS "${main_depend}" ${ARGN} caf_mpi_static
502-
VERBATIM
503-
)
524+
add_custom_command(OUTPUT "${target}"
525+
COMMAND "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}/caf"
526+
${includes} ${localDefs} ${config_Fortran_flags}
527+
-o "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${target}"
528+
"${CMAKE_CURRENT_SOURCE_DIR}/${main_depend}" ${ARGN}
529+
DEPENDS "${main_depend}" ${ARGN} caf_mpi_static
530+
VERBATIM
531+
)
504532
add_custom_target("build_${target}" ALL
505533
DEPENDS "${target}")
506534
endfunction(caf_compile_executable)
@@ -592,7 +620,7 @@ install(
592620
)
593621

594622
add_library(OpenCoarrays INTERFACE)
595-
target_compile_options(OpenCoarrays INTERFACE -fcoarray=lib)
623+
target_compile_options(OpenCoarrays INTERFACE $<$<COMPILE_LANGUAGE:Fortran>:"-fcoarray=lib")
596624
target_link_libraries(OpenCoarrays INTERFACE caf_mpi)
597625

598626
#------------------------------------------

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ foreach(directory ${directories_to_build})
77
endforeach()
88

99
set(N_CPU ${N_CPU} PARENT_SCOPE)
10-
set(HOSTNAME ${HOSTNAME} PARENT_SCOPE)
10+
set(HOST_NAME ${HOST_NAME} PARENT_SCOPE)
1111

1212
if(openmpi)
1313
set(openmpi ${openmpi} PARENT_SCOPE)

src/mpi/CMakeLists.txt

Lines changed: 117 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,108 @@
1+
# Silence warnings about dereferencing unset variables
2+
if(NOT CMAKE_REQUIRED_FLAGS)
3+
set(CMAKE_REQUIRED_FLAGS "")
4+
endif()
5+
if(NOT CMAKE_REQUIRED_LIBRARIES)
6+
set(CMAKE_REQUIRED_LIBRARIES "")
7+
endif()
8+
if(NOT CMAKE_REQUIRED_INCLUDES)
9+
set(CMAKE_REQUIRED_INCLUDES "")
10+
endif()
11+
112
if (NOT MPI_C_FOUND)
213
find_package(MPI REQUIRED)
14+
endif()
15+
16+
#-----------------------------------------------------------
17+
# Add the actual library targets, then adjust them as needed
18+
#-----------------------------------------------------------
19+
add_library(opencoarrays_mod STATIC ../extensions/opencoarrays.F90)
20+
set_target_properties(opencoarrays_mod
21+
PROPERTIES
22+
Fortran_MODULE_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}/${mod_dir_tail}"
23+
POSITION_INDEPENDENT_CODE TRUE)
24+
target_compile_options(opencoarrays_mod
25+
PRIVATE $<$<COMPILE_LANGUAGE:Fortran>:${MPI_Fortran_COMPILE_FLAGS}>)
26+
target_link_libraries(opencoarrays_mod
27+
PUBLIC ${MPI_Fortran_LINK_FLAGS}
28+
PUBLIC ${MPI_Fortran_LIBRARIES})
29+
target_include_directories(opencoarrays_mod
30+
PRIVATE $<$<COMPILE_LANGUAGE:Fortran>:${MPI_Fortran_INCLUDE_PATH}>)
31+
32+
add_library(caf_mpi SHARED mpi_caf.c ../common/caf_auxiliary.c)
33+
add_library(caf_mpi_static STATIC mpi_caf.c ../common/caf_auxiliary.c)
34+
target_link_libraries(caf_mpi
35+
PUBLIC ${MPI_C_LINK_FLAGS}
36+
PUBLIC ${MPI_C_LIBRARIES}
37+
PRIVATE opencoarrays_mod)
38+
target_link_libraries(caf_mpi_static
39+
PUBLIC ${MPI_C_LINK_FLAGS}
40+
PUBLIC ${MPI_C_LIBRARIES}
41+
PRIVATE opencoarrays_mod)
42+
target_include_directories(caf_mpi
43+
PUBLIC $<$<COMPILE_LANGUAGE:C>:${MPI_C_INCLUDE_PATH}>)
44+
target_include_directories(caf_mpi_static
45+
PUBLIC $<$<COMPILE_LANGUAGE:C>:${MPI_C_INCLUDE_PATH}>)
46+
target_compile_options(caf_mpi
47+
PUBLIC $<$<COMPILE_LANGUAGE:C>:${MPI_C_COMPILE_FLAGS}>)
48+
target_compile_options(caf_mpi_static
49+
PUBLIC $<$<COMPILE_LANGUAGE:C>:${MPI_C_COMPILE_FLAGS}>)
350

4-
set(CMAKE_C_COMPILE_FLAGS "${CMAKE_C_COMPILE_FLAGS} ${MPI_C_COMPILE_FLAGS}")
5-
set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} ${MPI_C_LINK_FLAGS}")
6-
set(CMAKE_Fortran_COMPILE_FLAGS "${CMAKE_Fortran_COMPILE_FLAGS} ${MPI_Fortran_COMPILE_FLAGS}")
7-
set(CMAKE_Fortran_LINK_FLAGS "${CMAKE_Fortran_LINK_FLAGS} ${MPI_Fortran_LINK_FLAGS}")
8-
include_directories(BEFORE ${MPI_C_INCLUDE_PATH} ${MPI_Fortran_INCLUDE_PATH})
51+
set(CAF_SO_VERSION 0)
52+
if(gfortran_compiler)
53+
if(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 8.0.0)
54+
set(CAF_SO_VERSION 3)
55+
elseif(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0)
56+
set(CAF_SO_VERSION 2)
57+
elseif(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 6.0.0)
58+
set(CAF_SO_VERSION 1)
59+
endif()
960
endif()
1061

62+
set_target_properties ( caf_mpi
63+
PROPERTIES
64+
SOVERSION ${CAF_SO_VERSION}
65+
# VERSION ${PROJECT_VERSION}
66+
)
67+
68+
# Create a symlink in the include dir
69+
if(UNIX)
70+
add_custom_command(TARGET caf_mpi
71+
POST_BUILD
72+
COMMAND ${CMAKE_COMMAND} -E create_symlink "./${mod_dir_tail}/opencoarrays.mod" "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}/opencoarrays.mod"
73+
COMMENT "Creating symlink ${CMAKE_INSTALL_INCLUDEDIR}/opencoarrays.mod --> ${CMAKE_INSTALL_INCLUDEDIR}/${mod_dir_tail}/opencoarrays.mod")
74+
endif()
75+
76+
install(DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}/" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
77+
FILES_MATCHING PATTERN "*.mod")
78+
79+
set_target_properties( caf_mpi_static
80+
PROPERTIES
81+
SOVERSION ${CAF_SO_VERSION}
82+
# VERSION ${PROJECT_VERSION}
83+
)
84+
85+
if (gfortran_compiler)
86+
target_compile_options(caf_mpi INTERFACE $<$<COMPILE_LANGUAGE:Fortran>:"-fcoarray=lib">)
87+
target_compile_options(caf_mpi_static INTERFACE $<$<COMPILE_LANGUAGE:Fortran>:"-fcoarray=lib">)
88+
endif()
89+
90+
install(TARGETS caf_mpi EXPORT OpenCoarraysTargets
91+
DESTINATION "${CMAKE_INSTALL_LIBDIR}"
92+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
93+
)
94+
install(TARGETS caf_mpi_static EXPORT OpenCoarraysTargets
95+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
96+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
97+
)
98+
1199
#----------------------------------
12100
# Determine if we're using Open MPI
13101
#----------------------------------
14102
cmake_host_system_information(RESULT N_CPU QUERY NUMBER_OF_LOGICAL_CORES)
15103
set(N_CPU ${N_CPU} PARENT_SCOPE)
16104
cmake_host_system_information(RESULT HOST_NAME QUERY HOSTNAME)
17-
set(HOSTNAME ${HOSTNAME} PARENT_SCOPE)
105+
set(HOST_NAME ${HOST_NAME} PARENT_SCOPE)
18106
execute_process(COMMAND ${MPIEXEC} --version
19107
OUTPUT_VARIABLE mpi_version_out)
20108
if (mpi_version_out MATCHES "[Oo]pen[ -][Mm][Pp][Ii]")
@@ -33,19 +121,21 @@ elseif("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "PGI")
33121
endif()
34122

35123
if(gfortran_compiler AND (NOT opencoarrays_aware_compiler))
36-
# This applied to gfortran < 5.2
37-
add_definitions(-DCOMPILER_SUPPORTS_CAF_INTRINSICS)
124+
target_compile_definitions(opencoarrays_mod PUBLIC -DCOMPILER_SUPPORTS_CAF_INTRINSICS)
38125
endif()
39126

40127
option(CAF_EXPOSE_INIT_FINALIZE "Expose caf_init and caf_finalize in opencoarrays module" FALSE)
41128
if(CAF_EXPOSE_INIT_FINALIZE)
42-
add_definitions(-DEXPOSE_INIT_FINALIZE)
129+
target_compile_definitions(opencoarrays_mod PRIVATE -DEXPOSE_INIT_FINALIZE)
43130
endif()
44131

45132
include(CheckIncludeFile)
46133
CHECK_INCLUDE_FILE("alloca.h" HAVE_ALLOCA)
47134
if(NOT HAVE_ALLOCA)
48-
add_definitions(-DALLOCA_MISSING)
135+
target_compile_definitions(caf_mpi
136+
PRIVATE -DALLOCA_MISSING)
137+
target_compile_definitions(caf_mpi_static
138+
PRIVATE -DALLOCA_MISSING)
49139
message(WARNING "Could not find <alloca.h>. Assuming functionality is provided elsewhere.")
50140
endif()
51141

@@ -68,7 +158,10 @@ if(NOT HAVE_SIGKILL) # try -D_POSIX, needed for mingw-w64, maybe others, see #43
68158
CHECK_SYMBOL_EXISTS(SIGKILL "signal.h" HAVE_SIGKILL2)
69159
if(HAVE_SIGKILL2)
70160
set(HAVE_SIGKILL ${HAVE_SIGKILL2})
71-
add_definitions(-D_POSIX)
161+
foreach(lib caf_mpi caf_mpi_static)
162+
target_compile_definitions(${lib}
163+
PUBLIC -D_POSIX)
164+
endforeach()
72165
endif()
73166
endif()
74167

@@ -102,7 +195,10 @@ set(MPI_HEADERS mpi.h)
102195
include(CheckIncludeFiles)
103196
CHECK_INCLUDE_FILES("mpi.h;mpi-ext.h" HAVE_MPI_EXT)
104197
if(HAVE_MPI_EXT)
105-
add_definitions(-DHAVE_MPI_EXT_H)
198+
foreach(lib caf_mpi caf_mpi_static)
199+
target_compile_definitions(${lib}
200+
PRIVATE -DHAVE_MPI_EXT_H)
201+
endforeach()
106202
set(MPI_HEADERS ${MPI_HEADERS};mpi-ext.h)
107203
endif()
108204

@@ -131,7 +227,10 @@ else()
131227
endif()
132228

133229
if(CAF_ENABLE_FAILED_IMAGES)
134-
add_definitions(-DUSE_FAILED_IMAGES)
230+
foreach(lib caf_mpi caf_mpi_static)
231+
target_compile_definitions(${lib}
232+
PUBLIC -DUSE_FAILED_IMAGES)
233+
endforeach()
135234
endif()
136235

137236
#---------------------------------------------------
@@ -146,69 +245,13 @@ endif()
146245
CHECK_INCLUDE_FILES("mpi.h" HAVE_MPI_H)
147246
CHECK_SYMBOL_EXISTS(I_MPI_VERSION "mpi.h" HAVE_Intel_MPI)
148247
if(HAVE_Intel_MPI AND WIN32)
149-
add_definitions(-DUSE_GCC)
248+
foreach(lib caf_mpi caf_mpi_static)
249+
target_compile_definitions(${lib}
250+
PUBLIC -DUSE_GCC)
251+
endforeach()
150252
endif()
151253
set(CMAKE_REQUIRED_INCLUDES ${old_cmake_required_includes})
152254

153-
add_library(opencoarrays_mod OBJECT ../extensions/opencoarrays.F90)
154-
set_target_properties(opencoarrays_mod
155-
PROPERTIES
156-
Fortran_MODULE_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}/${mod_dir_tail}"
157-
POSITION_INDEPENDENT_CODE TRUE)
158-
159-
add_library(caf_mpi SHARED mpi_caf.c ../common/caf_auxiliary.c $<TARGET_OBJECTS:opencoarrays_mod>)
160-
add_library(caf_mpi_static STATIC mpi_caf.c ../common/caf_auxiliary.c $<TARGET_OBJECTS:opencoarrays_mod>)
161-
target_link_libraries(caf_mpi PRIVATE ${MPI_C_LIBRARIES} ${MPI_Fortran_LIBRARIES})
162-
target_link_libraries(caf_mpi_static PRIVATE ${MPI_C_LIBRARIES} ${MPI_Fortran_LIBRARIES})
163-
164-
set(CAF_SO_VERSION 0)
165-
if(gfortran_compiler)
166-
if(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 8.0.0)
167-
set(CAF_SO_VERSION 3)
168-
elseif(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0)
169-
set(CAF_SO_VERSION 2)
170-
elseif(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 6.0.0)
171-
set(CAF_SO_VERSION 1)
172-
endif()
173-
endif()
174-
175-
set_target_properties ( caf_mpi
176-
PROPERTIES
177-
SOVERSION ${CAF_SO_VERSION}
178-
# VERSION ${PROJECT_VERSION}
179-
)
180-
181-
# Create a symlink in the include dir
182-
if(UNIX)
183-
add_custom_command(TARGET caf_mpi
184-
POST_BUILD
185-
COMMAND ${CMAKE_COMMAND} -E create_symlink "./${mod_dir_tail}/opencoarrays.mod" "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}/opencoarrays.mod"
186-
COMMENT "Creating symlink ${CMAKE_INSTALL_INCLUDEDIR}/opencoarrays.mod --> ${CMAKE_INSTALL_INCLUDEDIR}/${mod_dir_tail}/opencoarrays.mod")
187-
endif()
188-
189-
install(DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}/" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
190-
FILES_MATCHING PATTERN "*.mod")
191-
192-
set_target_properties( caf_mpi_static
193-
PROPERTIES
194-
SOVERSION ${CAF_SO_VERSION}
195-
# VERSION ${PROJECT_VERSION}
196-
)
197-
198-
if (gfortran_compiler)
199-
target_compile_options(caf_mpi INTERFACE -fcoarray=lib)
200-
target_compile_options(caf_mpi_static INTERFACE -fcoarray=lib)
201-
endif()
202-
203-
install(TARGETS caf_mpi EXPORT OpenCoarraysTargets
204-
DESTINATION "${CMAKE_INSTALL_LIBDIR}"
205-
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
206-
)
207-
install(TARGETS caf_mpi_static EXPORT OpenCoarraysTargets
208-
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
209-
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
210-
)
211-
212255
##############################################
213256
# Configure `caf` and `cafrun` wrapper scripts
214257
##############################################
@@ -227,7 +270,7 @@ set(CAF_MPI_LIBS "")
227270
foreach( lib IN LISTS MPI_Fortran_LIBRARIES)
228271
set(CAF_MPI_LIBS "${CAF_MPI_LIBS} \"${lib}\"")
229272
endforeach()
230-
string(STRIP "${MPI_LIBS}" MPI_LIBS)
273+
string(STRIP "${CAF_MPI_LIBS}" CAF_MPI_LIBS)
231274
set(CAF_MPI_Fortran_LINK_FLAGS "")
232275
foreach( lflag IN LISTS MPI_Fortran_LINK_FLAGS)
233276
set(CAF_MPI_Fortran_LINK_FLAGS "${CAF_MPI_Fortran_LINK_FLAGS} ${lflag}" )
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
set(DIST_TRANSP_SRCS coarray_distributed_transpose.F90)
12
if (HIGH_RESOLUTION_TIMER)
2-
add_definitions(-DHAVE_WALLTIME)
3-
set(walltime_o walltime.o)
3+
LIST(APPEND DIST_TRANSP_SRCS -DHAVE_WALLTIME walltime.o)
44
endif()
55
caf_compile_executable(coarray_distributed_transpose
6-
coarray_distributed_transpose.F90
7-
${walltime_o}
8-
)
6+
${DIST_TRANSP_SRCS} )

0 commit comments

Comments
 (0)