Skip to content

Commit

Permalink
Update for Fortran-C interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyeli committed Nov 12, 2019
1 parent fdea657 commit a9cb578
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ option(TPL_COMBBLAS_INCLUDE_DIRS "List of absolute paths to CombBLAS include dir
#
# IDEAS: xSDK standards module
MESSAGE("\nProcess XSDK defaults ...")
# SET(USE_XSDK_DEFAULTS_DEFAULT TRUE) # Set to false if desired
SET(USE_XSDK_DEFAULTS_DEFAULT TRUE) # Set to false if desired
INCLUDE("cmake/XSDKDefaults.cmake")
INCLUDE(CTest)
######################################################################
Expand Down Expand Up @@ -87,6 +87,7 @@ endif()
set(CMAKE_CXX_STANDARD 11)

if (XSDK_ENABLE_Fortran)
message("+++ XSDK fortran enabled")
enable_language (Fortran)
set(NOFORTRAN FALSE)
endif()
Expand Down Expand Up @@ -296,7 +297,7 @@ endif()

######################################################################
#
# Fortran - C name mangling
# Fortran-C name mangling
#
######################################################################
include(FortranCInterface)
Expand Down
6 changes: 3 additions & 3 deletions cmake/XSDKDefaults.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ SET(USE_XSDK_DEFAULTS ${USE_XSDK_DEFAULTS_DEFAULT} CACHE BOOL
"Use XSDK defaults and behavior.")
PRINT_VAR(USE_XSDK_DEFAULTS)

SET_DEFAULT(XSDK_ENABLE_C TRUE)
SET_DEFAULT(XSDK_ENABLE_CXX TRUE)
SET_DEFAULT(XSDK_ENABLE_Fortran TRUE)
SET(XSDK_ENABLE_C TRUE)
SET(XSDK_ENABLE_CXX TRUE)
SET(XSDK_ENABLE_Fortran TRUE)

# Handle the compiler and flags for a language
MACRO(XSDK_HANDLE_LANG_DEFAULTS CMAKE_LANG_NAME ENV_LANG_NAME
Expand Down

0 comments on commit a9cb578

Please sign in to comment.