File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -377,7 +377,12 @@ target_link_libraries(ufs PUBLIC "${_ufs_libs_public}")
377
377
add_executable (ufs_model driver/UFS.F90)
378
378
add_dependencies (ufs_model ufs)
379
379
target_link_libraries (ufs_model ufs esmf w3emc::w3emc_d)
380
- set_target_properties (ufs_model PROPERTIES LINKER_LANGUAGE Fortran)
380
+
381
+ if (CMAKE_Platform MATCHES "macosx.gnu" )
382
+ set_target_properties (ufs_model PROPERTIES LINKER_LANGUAGE CXX)
383
+ else ()
384
+ set_target_properties (ufs_model PROPERTIES LINKER_LANGUAGE Fortran)
385
+ endif ()
381
386
382
387
###############################################################################
383
388
### Install
Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ export FC=${FC:-mpif90}
13
13
BUILD_DIR=${BUILD_DIR:- ${UFS_MODEL_DIR} / build}
14
14
mkdir -p " ${BUILD_DIR} "
15
15
16
- if [[ " $( uname -s) " == " Darwin" ]]; then
17
- gsed -i' .backup' " s:LINKER_LANGUAGE Fortran:LINKER_LANGUAGE CXX:" ./CMakeLists.txt
18
- fi
19
-
20
16
cd " ${BUILD_DIR} "
21
17
ARR_CMAKE_FLAGS=()
22
18
for i in ${CMAKE_FLAGS} ; do ARR_CMAKE_FLAGS+=(" ${i} " ) ; done
You can’t perform that action at this time.
0 commit comments