mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-01 16:28:09 +08:00
18 lines
443 B
CMake
18 lines
443 B
CMake
# Uncomment the following to use cross-compiling
|
|
#set (CMAKE_SYSTEM_NAME Linux)
|
|
|
|
set (CMAKE_COMPILER_VENDOR "clang")
|
|
|
|
if(WIN32)
|
|
set (CMAKE_C_COMPILER clang-cl)
|
|
set (CMAKE_CXX_COMPILER clang-cl)
|
|
else()
|
|
set (CMAKE_C_COMPILER clang)
|
|
set (CMAKE_CXX_COMPILER clang++)
|
|
#set (CMAKE_Fortran_COMPILER flang-new)
|
|
endif()
|
|
set (CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
# the following is used if cross-compiling
|
|
set (CMAKE_CROSSCOMPILING_EMULATOR "")
|