diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-08-26 18:55:55 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-08-26 18:55:55 (GMT) |
commit | 66a08c10e5bd4b8eff58837cd58372a4dfdd19df (patch) | |
tree | 9d094b67d0899a3cebdfeba8b0280d374e7f25db /Modules/CMakeDefaultMakeRuleVariables.cmake | |
parent | 7cdf5c4601ea2a791d35fafadd890508ce434c6f (diff) | |
download | CMake-66a08c10e5bd4b8eff58837cd58372a4dfdd19df.zip CMake-66a08c10e5bd4b8eff58837cd58372a4dfdd19df.tar.gz CMake-66a08c10e5bd4b8eff58837cd58372a4dfdd19df.tar.bz2 |
ENH: more uniform approach to enable language, one step closer to being able to enable a language without modifing cmake source code
Diffstat (limited to 'Modules/CMakeDefaultMakeRuleVariables.cmake')
-rw-r--r-- | Modules/CMakeDefaultMakeRuleVariables.cmake | 140 |
1 files changed, 0 insertions, 140 deletions
diff --git a/Modules/CMakeDefaultMakeRuleVariables.cmake b/Modules/CMakeDefaultMakeRuleVariables.cmake deleted file mode 100644 index 73d8ab8..0000000 --- a/Modules/CMakeDefaultMakeRuleVariables.cmake +++ /dev/null @@ -1,140 +0,0 @@ -# this file contains rule variables that tell cmake how to -# do things like build a .o file, create a shared or static library -# - -# this file defines the following rule variables -# CMAKE_CXX_CREATE_SHARED_LIBRARY -# CMAKE_CXX_CREATE_SHARED_MODULE -# CMAKE_C_CREATE_SHARED_LIBRARY -# CMAKE_C_CREATE_SHARED_MODULE -# CMAKE_FORTRAN_CREATE_SHARED_LIBRARY -# CMAKE_FORTRAN_CREATE_SHARED_MODULE -# CMAKE_CXX_CREATE_STATIC_LIBRARY -# CMAKE_C_CREATE_STATIC_LIBRARY -# CMAKE_FORTRAN_CREATE_STATIC_LIBRARY -# CMAKE_CXX_COMPILE_OBJECT -# CMAKE_C_COMPILE_OBJECT -# CMAKE_FORTRAN_COMPILE_OBJECT -# CMAKE_C_LINK_EXECUTABLE -# CMAKE_FORTRAN_LINK_EXECUTABLE -# CMAKE_CXX_LINK_EXECUTABLE - -# variables supplied by the generator at use time -# <TARGET> -# <TARGET_BASE> the target without the suffix -# <OBJECTS> -# <OBJECT> -# <LINK_LIBRARIES> -# <FLAGS> -# <LINK_FLAGS> - -# CXX compiler information -# <CMAKE_CXX_COMPILER> -# <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> -# <CMAKE_CXX_SHARED_MODULE_CREATE_FLAGS> -# <CMAKE_CXX_LINK_FLAGS> - -# C compiler information -# <CMAKE_C_COMPILER> -# <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -# <CMAKE_SHARED_MODULE_CREATE_C_FLAGS> -# <CMAKE_C_LINK_FLAGS> - -# Static library tools -# <CMAKE_AR> -# <CMAKE_RANLIB> - - -# create a shared C++ library -IF(NOT CMAKE_CXX_CREATE_SHARED_LIBRARY) - SET(CMAKE_CXX_CREATE_SHARED_LIBRARY - "<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>") -ENDIF(NOT CMAKE_CXX_CREATE_SHARED_LIBRARY) - -IF(CMAKE_COMPILER_IS_GNUCXX) - SET(CMAKE_CXX_CREATE_SHARED_LIBRARY "${CMAKE_CXX_CREATE_SHARED_LIBRARY} -lgcc") -ENDIF(CMAKE_COMPILER_IS_GNUCXX) - -# create a c++ shared module copy the shared library rule by default -IF(NOT CMAKE_CXX_CREATE_SHARED_MODULE) - SET(CMAKE_CXX_CREATE_SHARED_MODULE ${CMAKE_CXX_CREATE_SHARED_LIBRARY}) -ENDIF(NOT CMAKE_CXX_CREATE_SHARED_MODULE) - - -# create a C shared library -IF(NOT CMAKE_C_CREATE_SHARED_LIBRARY) - SET(CMAKE_C_CREATE_SHARED_LIBRARY - "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_C_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>") -ENDIF(NOT CMAKE_C_CREATE_SHARED_LIBRARY) - -# create a C shared module just copy the shared library rule -IF(NOT CMAKE_C_CREATE_SHARED_MODULE) - SET(CMAKE_C_CREATE_SHARED_MODULE ${CMAKE_C_CREATE_SHARED_LIBRARY}) -ENDIF(NOT CMAKE_C_CREATE_SHARED_MODULE) - -# create a FORTRAN shared library -IF(NOT CMAKE_FORTRAN_CREATE_SHARED_LIBRARY) - SET(CMAKE_FORTRAN_CREATE_SHARED_LIBRARY - "<CMAKE_FORTRAN_COMPILER> <CMAKE_SHARED_LIBRARY_FORTRAN_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_FORTRAN_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_FORTRAN_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>") -ENDIF(NOT CMAKE_FORTRAN_CREATE_SHARED_LIBRARY) - -# create a FORTRAN shared module just copy the shared library rule -IF(NOT CMAKE_FORTRAN_CREATE_SHARED_MODULE) - SET(CMAKE_FORTRAN_CREATE_SHARED_MODULE ${CMAKE_FORTRAN_CREATE_SHARED_LIBRARY}) -ENDIF(NOT CMAKE_FORTRAN_CREATE_SHARED_MODULE) - -# create a C++ static library -IF(NOT CMAKE_CXX_CREATE_STATIC_LIBRARY) - SET(CMAKE_CXX_CREATE_STATIC_LIBRARY - "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS> " - "<CMAKE_RANLIB> <TARGET> ") -ENDIF(NOT CMAKE_CXX_CREATE_STATIC_LIBRARY) - -# create a C static library -IF(NOT CMAKE_C_CREATE_STATIC_LIBRARY) - SET(CMAKE_C_CREATE_STATIC_LIBRARY - "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS> " - "<CMAKE_RANLIB> <TARGET> ") -ENDIF(NOT CMAKE_C_CREATE_STATIC_LIBRARY) - -# create a Fortran static library -IF(NOT CMAKE_FORTRAN_CREATE_STATIC_LIBRARY) - SET(CMAKE_FORTRAN_CREATE_STATIC_LIBRARY - "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS> " - "<CMAKE_RANLIB> <TARGET> ") -ENDIF(NOT CMAKE_FORTRAN_CREATE_STATIC_LIBRARY) - -# compile a C++ file into an object file -IF(NOT CMAKE_CXX_COMPILE_OBJECT) - SET(CMAKE_CXX_COMPILE_OBJECT - "<CMAKE_CXX_COMPILER> -o <OBJECT> <FLAGS> -c <SOURCE>") -ENDIF(NOT CMAKE_CXX_COMPILE_OBJECT) - -# compile a C file into an object file -IF(NOT CMAKE_C_COMPILE_OBJECT) - SET(CMAKE_C_COMPILE_OBJECT - "<CMAKE_C_COMPILER> -o <OBJECT> <FLAGS> -c <SOURCE>") -ENDIF(NOT CMAKE_C_COMPILE_OBJECT) - -# compile a Fortran file into an object file -IF(NOT CMAKE_FORTRAN_COMPILE_OBJECT) - SET(CMAKE_FORTRAN_COMPILE_OBJECT - "<CMAKE_FORTRAN_COMPILER> -o <OBJECT> <FLAGS> -c <SOURCE>") -ENDIF(NOT CMAKE_FORTRAN_COMPILE_OBJECT) - - -IF(NOT CMAKE_C_LINK_EXECUTABLE) - SET(CMAKE_C_LINK_EXECUTABLE - "<CMAKE_C_COMPILER> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>") -ENDIF(NOT CMAKE_C_LINK_EXECUTABLE) - -IF(NOT CMAKE_FORTRAN_LINK_EXECUTABLE) - SET(CMAKE_FORTRAN_LINK_EXECUTABLE - "<CMAKE_FORTRAN_COMPILER> <CMAKE_FORTRAN_LINK_FLAGS> <LINK_FLAGS> <FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>") -ENDIF(NOT CMAKE_FORTRAN_LINK_EXECUTABLE) - - -IF(NOT CMAKE_CXX_LINK_EXECUTABLE) - SET(CMAKE_CXX_LINK_EXECUTABLE - "<CMAKE_CXX_COMPILER> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>") -ENDIF(NOT CMAKE_CXX_LINK_EXECUTABLE) |