ENH: Improvied compiler identification robustness
- Write a single source file into the compiler id directory - This avoid requiring the compiler to behave correctly with respect to include rules and the current working directory - Helps to identify cross-compiling toolchains with unusual default behavior
This commit is contained in:
parent
88bd02a5d1
commit
9211b0d234
@ -2,9 +2,8 @@
|
|||||||
# error "A C++ compiler has been selected for C."
|
# error "A C++ compiler has been selected for C."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __CLASSIC_C__
|
/* Provide main() so the program can link. */
|
||||||
# define const
|
int main() { return 0; }
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__INTEL_COMPILER) || defined(__ICC)
|
#if defined(__INTEL_COMPILER) || defined(__ICC)
|
||||||
# define COMPILER_ID "Intel"
|
# define COMPILER_ID "Intel"
|
||||||
@ -37,7 +36,7 @@
|
|||||||
# define COMPILER_ID "MSVC"
|
# define COMPILER_ID "MSVC"
|
||||||
|
|
||||||
#elif defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
|
#elif defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
|
||||||
/* Analog Devices C++ compiler for Blackfin, TigerSHARC and
|
/* Analog Devices C++ compiler for Blackfin, TigerSHARC and
|
||||||
SHARC (21000) DSPs */
|
SHARC (21000) DSPs */
|
||||||
# define COMPILER_ID "ADSP"
|
# define COMPILER_ID "ADSP"
|
||||||
|
|
||||||
@ -47,7 +46,7 @@
|
|||||||
#elif defined(__IAR_SYSTEMS_ICC__)
|
#elif defined(__IAR_SYSTEMS_ICC__)
|
||||||
# define COMPILER_ID "IAR" */
|
# define COMPILER_ID "IAR" */
|
||||||
|
|
||||||
/* sdcc, the small devices C compiler for embedded systems,
|
/* sdcc, the small devices C compiler for embedded systems,
|
||||||
http://sdcc.sourceforge.net */
|
http://sdcc.sourceforge.net */
|
||||||
#elif defined(SDCC)
|
#elif defined(SDCC)
|
||||||
# define COMPILER_ID "SDCC"
|
# define COMPILER_ID "SDCC"
|
||||||
@ -69,13 +68,6 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static char const info_compiler[] = "INFO:compiler[" COMPILER_ID "]";
|
char info_compiler[] = "INFO:compiler[" COMPILER_ID "]";
|
||||||
|
|
||||||
/* Include the platform identification source. */
|
@CMAKE_C_COMPILER_ID_PLATFORM_CONTENT@
|
||||||
#include "CMakePlatformId.h"
|
|
||||||
|
|
||||||
/* Make sure the information strings are referenced. */
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
return (&info_compiler[0] != &info_platform[0]);
|
|
||||||
}
|
|
@ -5,6 +5,9 @@
|
|||||||
# error "A C compiler has been selected for C++."
|
# error "A C compiler has been selected for C++."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Provide main() so the program can link. */
|
||||||
|
int main() { return 0; }
|
||||||
|
|
||||||
#if defined(__COMO__)
|
#if defined(__COMO__)
|
||||||
# define COMPILER_ID "Comeau"
|
# define COMPILER_ID "Comeau"
|
||||||
|
|
||||||
@ -39,7 +42,7 @@
|
|||||||
# define COMPILER_ID "MSVC"
|
# define COMPILER_ID "MSVC"
|
||||||
|
|
||||||
#elif defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
|
#elif defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
|
||||||
/* Analog Devices C++ compiler for Blackfin, TigerSHARC and
|
/* Analog Devices C++ compiler for Blackfin, TigerSHARC and
|
||||||
SHARC (21000) DSPs */
|
SHARC (21000) DSPs */
|
||||||
# define COMPILER_ID "ADSP"
|
# define COMPILER_ID "ADSP"
|
||||||
|
|
||||||
@ -60,13 +63,6 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static char const info_compiler[] = "INFO:compiler[" COMPILER_ID "]";
|
char info_compiler[] = "INFO:compiler[" COMPILER_ID "]";
|
||||||
|
|
||||||
/* Include the platform identification source. */
|
@CMAKE_CXX_COMPILER_ID_PLATFORM_CONTENT@
|
||||||
#include "CMakePlatformId.h"
|
|
||||||
|
|
||||||
/* Make sure the information strings are referenced. */
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
return (&info_compiler[0] != &info_platform[0]);
|
|
||||||
}
|
|
@ -122,8 +122,10 @@ IF(NOT CMAKE_C_COMPILER_ID_RUN)
|
|||||||
|
|
||||||
# Try to identify the compiler.
|
# Try to identify the compiler.
|
||||||
SET(CMAKE_C_COMPILER_ID)
|
SET(CMAKE_C_COMPILER_ID)
|
||||||
|
FILE(READ ${CMAKE_ROOT}/Modules/CMakePlatformId.h.in
|
||||||
|
CMAKE_C_COMPILER_ID_PLATFORM_CONTENT)
|
||||||
INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
|
INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
|
||||||
CMAKE_DETERMINE_COMPILER_ID(C CFLAGS ${CMAKE_ROOT}/Modules/CMakeCCompilerId.c)
|
CMAKE_DETERMINE_COMPILER_ID(C CFLAGS CMakeCCompilerId.c)
|
||||||
|
|
||||||
# Set old compiler and platform id variables.
|
# Set old compiler and platform id variables.
|
||||||
IF("${CMAKE_C_COMPILER_ID}" MATCHES "GNU")
|
IF("${CMAKE_C_COMPILER_ID}" MATCHES "GNU")
|
||||||
|
@ -132,8 +132,10 @@ IF(NOT CMAKE_CXX_COMPILER_ID_RUN)
|
|||||||
|
|
||||||
# Try to identify the compiler.
|
# Try to identify the compiler.
|
||||||
SET(CMAKE_CXX_COMPILER_ID)
|
SET(CMAKE_CXX_COMPILER_ID)
|
||||||
|
FILE(READ ${CMAKE_ROOT}/Modules/CMakePlatformId.h.in
|
||||||
|
CMAKE_CXX_COMPILER_ID_PLATFORM_CONTENT)
|
||||||
INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
|
INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
|
||||||
CMAKE_DETERMINE_COMPILER_ID(CXX CXXFLAGS ${CMAKE_ROOT}/Modules/CMakeCXXCompilerId.cpp)
|
CMAKE_DETERMINE_COMPILER_ID(CXX CXXFLAGS CMakeCXXCompilerId.cpp)
|
||||||
|
|
||||||
# Set old compiler and platform id variables.
|
# Set old compiler and platform id variables.
|
||||||
IF("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
IF("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||||
|
@ -4,16 +4,6 @@
|
|||||||
# If successful, sets CMAKE_<lang>_COMPILER_ID and CMAKE_<lang>_PLATFORM_ID
|
# If successful, sets CMAKE_<lang>_COMPILER_ID and CMAKE_<lang>_PLATFORM_ID
|
||||||
|
|
||||||
FUNCTION(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
|
FUNCTION(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
|
||||||
# Store the compiler identification source file.
|
|
||||||
SET(CMAKE_${lang}_COMPILER_ID_SRC "${src}")
|
|
||||||
IF(CMAKE_HOST_WIN32 AND NOT CMAKE_HOST_UNIX)
|
|
||||||
# This seems to escape spaces:
|
|
||||||
#FILE(TO_NATIVE_PATH "${CMAKE_${lang}_COMPILER_ID_SRC}"
|
|
||||||
# CMAKE_${lang}_COMPILER_ID_SRC)
|
|
||||||
STRING(REGEX REPLACE "/" "\\\\" CMAKE_${lang}_COMPILER_ID_SRC
|
|
||||||
"${CMAKE_${lang}_COMPILER_ID_SRC}")
|
|
||||||
ENDIF(CMAKE_HOST_WIN32 AND NOT CMAKE_HOST_UNIX)
|
|
||||||
|
|
||||||
# Make sure the compiler arguments are clean.
|
# Make sure the compiler arguments are clean.
|
||||||
STRING(STRIP "${CMAKE_${lang}_COMPILER_ARG1}" CMAKE_${lang}_COMPILER_ID_ARG1)
|
STRING(STRIP "${CMAKE_${lang}_COMPILER_ARG1}" CMAKE_${lang}_COMPILER_ID_ARG1)
|
||||||
|
|
||||||
@ -32,9 +22,9 @@ FUNCTION(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
|
|||||||
# of helper flags. Stop when the compiler is identified.
|
# of helper flags. Stop when the compiler is identified.
|
||||||
FOREACH(flags "" ${CMAKE_${lang}_COMPILER_ID_TEST_FLAGS})
|
FOREACH(flags "" ${CMAKE_${lang}_COMPILER_ID_TEST_FLAGS})
|
||||||
IF(NOT CMAKE_${lang}_COMPILER_ID)
|
IF(NOT CMAKE_${lang}_COMPILER_ID)
|
||||||
CMAKE_DETERMINE_COMPILER_ID_BUILD("${lang}" "${flags}")
|
CMAKE_DETERMINE_COMPILER_ID_BUILD("${lang}" "${flags}" "${src}")
|
||||||
FOREACH(file ${COMPILER_${lang}_PRODUCED_FILES})
|
FOREACH(file ${COMPILER_${lang}_PRODUCED_FILES})
|
||||||
CMAKE_DETERMINE_COMPILER_ID_CHECK("${lang}" "${file}")
|
CMAKE_DETERMINE_COMPILER_ID_CHECK("${lang}" "${CMAKE_${lang}_COMPILER_ID_DIR}/${file}" "${src}")
|
||||||
ENDFOREACH(file)
|
ENDFOREACH(file)
|
||||||
ENDIF(NOT CMAKE_${lang}_COMPILER_ID)
|
ENDIF(NOT CMAKE_${lang}_COMPILER_ID)
|
||||||
ENDFOREACH(flags)
|
ENDFOREACH(flags)
|
||||||
@ -56,20 +46,29 @@ FUNCTION(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
|
|||||||
SET(CMAKE_${lang}_PLATFORM_ID "${CMAKE_${lang}_PLATFORM_ID}" PARENT_SCOPE)
|
SET(CMAKE_${lang}_PLATFORM_ID "${CMAKE_${lang}_PLATFORM_ID}" PARENT_SCOPE)
|
||||||
ENDFUNCTION(CMAKE_DETERMINE_COMPILER_ID)
|
ENDFUNCTION(CMAKE_DETERMINE_COMPILER_ID)
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
# Function to write the compiler id source file.
|
||||||
|
FUNCTION(CMAKE_DETERMINE_COMPILER_ID_WRITE lang src)
|
||||||
|
FILE(READ ${CMAKE_ROOT}/Modules/${src}.in ID_CONTENT_IN)
|
||||||
|
STRING(CONFIGURE "${ID_CONTENT_IN}" ID_CONTENT_OUT @ONLY)
|
||||||
|
FILE(WRITE ${CMAKE_${lang}_COMPILER_ID_DIR}/${src} "${ID_CONTENT_OUT}")
|
||||||
|
ENDFUNCTION(CMAKE_DETERMINE_COMPILER_ID_WRITE)
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# Function to build the compiler id source file and look for output
|
# Function to build the compiler id source file and look for output
|
||||||
# files.
|
# files.
|
||||||
FUNCTION(CMAKE_DETERMINE_COMPILER_ID_BUILD lang testflags)
|
FUNCTION(CMAKE_DETERMINE_COMPILER_ID_BUILD lang testflags src)
|
||||||
# Create a clean working directory.
|
# Create a clean working directory.
|
||||||
FILE(REMOVE_RECURSE ${CMAKE_${lang}_COMPILER_ID_DIR})
|
FILE(REMOVE_RECURSE ${CMAKE_${lang}_COMPILER_ID_DIR})
|
||||||
FILE(MAKE_DIRECTORY ${CMAKE_${lang}_COMPILER_ID_DIR})
|
FILE(MAKE_DIRECTORY ${CMAKE_${lang}_COMPILER_ID_DIR})
|
||||||
|
CMAKE_DETERMINE_COMPILER_ID_WRITE("${lang}" "${src}")
|
||||||
|
|
||||||
# Construct a description of this test case.
|
# Construct a description of this test case.
|
||||||
SET(COMPILER_DESCRIPTION
|
SET(COMPILER_DESCRIPTION
|
||||||
"Compiler: ${CMAKE_${lang}_COMPILER} ${CMAKE_${lang}_COMPILER_ID_ARG1}\n"
|
"Compiler: ${CMAKE_${lang}_COMPILER} ${CMAKE_${lang}_COMPILER_ID_ARG1}
|
||||||
"Build flags: ${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}\n"
|
Build flags: ${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}
|
||||||
"Id flags: ${testflags}\n"
|
Id flags: ${testflags}
|
||||||
)
|
")
|
||||||
|
|
||||||
# Compile the compiler identification source.
|
# Compile the compiler identification source.
|
||||||
IF(COMMAND EXECUTE_PROCESS)
|
IF(COMMAND EXECUTE_PROCESS)
|
||||||
@ -78,7 +77,7 @@ FUNCTION(CMAKE_DETERMINE_COMPILER_ID_BUILD lang testflags)
|
|||||||
${CMAKE_${lang}_COMPILER_ID_ARG1}
|
${CMAKE_${lang}_COMPILER_ID_ARG1}
|
||||||
${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}
|
${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}
|
||||||
${testflags}
|
${testflags}
|
||||||
${CMAKE_${lang}_COMPILER_ID_SRC}
|
"${src}"
|
||||||
WORKING_DIRECTORY ${CMAKE_${lang}_COMPILER_ID_DIR}
|
WORKING_DIRECTORY ${CMAKE_${lang}_COMPILER_ID_DIR}
|
||||||
OUTPUT_VARIABLE CMAKE_${lang}_COMPILER_ID_OUTPUT
|
OUTPUT_VARIABLE CMAKE_${lang}_COMPILER_ID_OUTPUT
|
||||||
ERROR_VARIABLE CMAKE_${lang}_COMPILER_ID_OUTPUT
|
ERROR_VARIABLE CMAKE_${lang}_COMPILER_ID_OUTPUT
|
||||||
@ -90,7 +89,7 @@ FUNCTION(CMAKE_DETERMINE_COMPILER_ID_BUILD lang testflags)
|
|||||||
ARGS ${CMAKE_${lang}_COMPILER_ID_ARG1}
|
ARGS ${CMAKE_${lang}_COMPILER_ID_ARG1}
|
||||||
${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}
|
${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}
|
||||||
${testflags}
|
${testflags}
|
||||||
\"${CMAKE_${lang}_COMPILER_ID_SRC}\"
|
\"${src}\"
|
||||||
OUTPUT_VARIABLE CMAKE_${lang}_COMPILER_ID_OUTPUT
|
OUTPUT_VARIABLE CMAKE_${lang}_COMPILER_ID_OUTPUT
|
||||||
RETURN_VALUE CMAKE_${lang}_COMPILER_ID_RESULT
|
RETURN_VALUE CMAKE_${lang}_COMPILER_ID_RESULT
|
||||||
)
|
)
|
||||||
@ -100,13 +99,13 @@ FUNCTION(CMAKE_DETERMINE_COMPILER_ID_BUILD lang testflags)
|
|||||||
IF(CMAKE_${lang}_COMPILER_ID_RESULT)
|
IF(CMAKE_${lang}_COMPILER_ID_RESULT)
|
||||||
# Compilation failed.
|
# Compilation failed.
|
||||||
SET(MSG
|
SET(MSG
|
||||||
"Compiling the ${lang} compiler identification source file \""
|
"Compiling the ${lang} compiler identification source file \"${src}\" failed.
|
||||||
"${CMAKE_${lang}_COMPILER_ID_SRC}\" failed.\n"
|
${COMPILER_DESCRIPTION}
|
||||||
${COMPILER_DESCRIPTION}
|
The output was:
|
||||||
"The output was:\n"
|
${CMAKE_${lang}_COMPILER_ID_RESULT}
|
||||||
"${CMAKE_${lang}_COMPILER_ID_RESULT}\n"
|
${CMAKE_${lang}_COMPILER_ID_OUTPUT}
|
||||||
"${CMAKE_${lang}_COMPILER_ID_OUTPUT}\n\n"
|
|
||||||
)
|
")
|
||||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log "${MSG}")
|
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log "${MSG}")
|
||||||
#IF(NOT CMAKE_${lang}_COMPILER_ID_ALLOW_FAIL)
|
#IF(NOT CMAKE_${lang}_COMPILER_ID_ALLOW_FAIL)
|
||||||
# MESSAGE(FATAL_ERROR "${MSG}")
|
# MESSAGE(FATAL_ERROR "${MSG}")
|
||||||
@ -117,35 +116,38 @@ FUNCTION(CMAKE_DETERMINE_COMPILER_ID_BUILD lang testflags)
|
|||||||
ELSE(CMAKE_${lang}_COMPILER_ID_RESULT)
|
ELSE(CMAKE_${lang}_COMPILER_ID_RESULT)
|
||||||
# Compilation succeeded.
|
# Compilation succeeded.
|
||||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||||
"Compiling the ${lang} compiler identification source file \""
|
"Compiling the ${lang} compiler identification source file \"${src}\" succeeded.
|
||||||
"${CMAKE_${lang}_COMPILER_ID_SRC}\" succeeded.\n"
|
${COMPILER_DESCRIPTION}
|
||||||
${COMPILER_DESCRIPTION}
|
The output was:
|
||||||
"The output was:\n"
|
${CMAKE_${lang}_COMPILER_ID_RESULT}
|
||||||
"${CMAKE_${lang}_COMPILER_ID_RESULT}\n"
|
${CMAKE_${lang}_COMPILER_ID_OUTPUT}
|
||||||
"${CMAKE_${lang}_COMPILER_ID_OUTPUT}\n\n"
|
|
||||||
)
|
")
|
||||||
|
|
||||||
# Find the executable produced by the compiler, try all files in the
|
# Find the executable produced by the compiler, try all files in the
|
||||||
# binary dir.
|
# binary dir.
|
||||||
FILE(GLOB COMPILER_${lang}_PRODUCED_FILES ${CMAKE_${lang}_COMPILER_ID_DIR}/*)
|
FILE(GLOB COMPILER_${lang}_PRODUCED_FILES
|
||||||
|
RELATIVE ${CMAKE_${lang}_COMPILER_ID_DIR}
|
||||||
|
${CMAKE_${lang}_COMPILER_ID_DIR}/*)
|
||||||
|
LIST(REMOVE_ITEM COMPILER_${lang}_PRODUCED_FILES "${src}")
|
||||||
FOREACH(file ${COMPILER_${lang}_PRODUCED_FILES})
|
FOREACH(file ${COMPILER_${lang}_PRODUCED_FILES})
|
||||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||||
"Compilation of the ${lang} compiler identification source \""
|
"Compilation of the ${lang} compiler identification source \""
|
||||||
"${CMAKE_${lang}_COMPILER_ID_SRC}\" produced \"${file}\"\n\n")
|
"${src}\" produced \"${file}\"\n\n")
|
||||||
ENDFOREACH(file)
|
ENDFOREACH(file)
|
||||||
|
|
||||||
IF(NOT COMPILER_${lang}_PRODUCED_FILES)
|
IF(NOT COMPILER_${lang}_PRODUCED_FILES)
|
||||||
# No executable was found.
|
# No executable was found.
|
||||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
||||||
"Compilation of the ${lang} compiler identification source \""
|
"Compilation of the ${lang} compiler identification source \""
|
||||||
"${CMAKE_${lang}_COMPILER_ID_SRC}\" did not produce an executable in \""
|
"${src}\" did not produce an executable in \""
|
||||||
"${CMAKE_${lang}_COMPILER_ID_DIR}\".\n\n")
|
"${CMAKE_${lang}_COMPILER_ID_DIR}\".\n\n")
|
||||||
ENDIF(NOT COMPILER_${lang}_PRODUCED_FILES)
|
ENDIF(NOT COMPILER_${lang}_PRODUCED_FILES)
|
||||||
ENDIF(CMAKE_${lang}_COMPILER_ID_RESULT)
|
ENDIF(CMAKE_${lang}_COMPILER_ID_RESULT)
|
||||||
|
|
||||||
# Return the files produced by the compilation.
|
# Return the files produced by the compilation.
|
||||||
SET(COMPILER_${lang}_PRODUCED_FILES "${COMPILER_${lang}_PRODUCED_FILES}" PARENT_SCOPE)
|
SET(COMPILER_${lang}_PRODUCED_FILES "${COMPILER_${lang}_PRODUCED_FILES}" PARENT_SCOPE)
|
||||||
ENDFUNCTION(CMAKE_DETERMINE_COMPILER_ID_BUILD lang testflags)
|
ENDFUNCTION(CMAKE_DETERMINE_COMPILER_ID_BUILD lang testflags src)
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# Function to extract the compiler id from an executable.
|
# Function to extract the compiler id from an executable.
|
||||||
|
@ -94,7 +94,7 @@ IF(NOT CMAKE_Fortran_COMPILER_ID_RUN)
|
|||||||
# Try to identify the compiler.
|
# Try to identify the compiler.
|
||||||
SET(CMAKE_Fortran_COMPILER_ID)
|
SET(CMAKE_Fortran_COMPILER_ID)
|
||||||
INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
|
INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
|
||||||
CMAKE_DETERMINE_COMPILER_ID(Fortran FFLAGS ${CMAKE_ROOT}/Modules/CMakeFortranCompilerId.F90)
|
CMAKE_DETERMINE_COMPILER_ID(Fortran FFLAGS CMakeFortranCompilerId.F90)
|
||||||
|
|
||||||
# Fall back to old is-GNU test.
|
# Fall back to old is-GNU test.
|
||||||
IF(NOT CMAKE_Fortran_COMPILER_ID)
|
IF(NOT CMAKE_Fortran_COMPILER_ID)
|
||||||
|
@ -76,4 +76,4 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static char const info_platform[] = "INFO:platform[" PLATFORM_ID "]";
|
char info_platform[] = "INFO:platform[" PLATFORM_ID "]";
|
Loading…
x
Reference in New Issue
Block a user