https://github.com/Kitware/CMake
Revision 4ece8bdd0fa36d8e69dabf8c620f9e50170000e8 authored by Chuck Atkins on 12 July 2016, 17:40:41 UTC, committed by Chuck Atkins on 12 July 2016, 17:40:41 UTC
1 parent 87c1cd9
Raw File
Tip revision: 4ece8bdd0fa36d8e69dabf8c620f9e50170000e8 authored by Chuck Atkins on 12 July 2016, 17:40:41 UTC
FindHDF5: Properly fail when required components are not found.
Tip revision: 4ece8bd
CMakeSwiftInformation.cmake

#=============================================================================
# Copyright 2004-2015 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full
#  License text for the above reference.)

set(CMAKE_Swift_OUTPUT_EXTENSION .o)

# Load compiler-specific information.
if(CMAKE_Swift_COMPILER_ID)
  include(Compiler/${CMAKE_Swift_COMPILER_ID}-Swift OPTIONAL)
endif()

# load the system- and compiler specific files
if(CMAKE_Swift_COMPILER_ID)
  # load a hardware specific file, mostly useful for embedded compilers
  if(CMAKE_SYSTEM_PROCESSOR)
    include(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_Swift_COMPILER_ID}-Swift-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL)
  endif()
  include(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_Swift_COMPILER_ID}-Swift OPTIONAL)
endif()

# for most systems a module is the same as a shared library
# so unless the variable CMAKE_MODULE_EXISTS is set just
# copy the values from the LIBRARY variables
if(NOT CMAKE_MODULE_EXISTS)
  set(CMAKE_SHARED_MODULE_Swift_FLAGS ${CMAKE_SHARED_LIBRARY_Swift_FLAGS})
  set(CMAKE_SHARED_MODULE_CREATE_Swift_FLAGS ${CMAKE_SHARED_LIBRARY_CREATE_Swift_FLAGS})
endif()

include(CMakeCommonLanguageInclude)

set(CMAKE_Swift_INFORMATION_LOADED 1)
back to top