Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
820901dd
Commit
820901dd
authored
Apr 14, 2008
by
Brad King
Browse files
ENH: Clarify message about checking for compiler ABI information.
parent
fdc3bfff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/CMakeDetermineCompilerABI.cmake
View file @
820901dd
...
...
@@ -5,7 +5,7 @@
FUNCTION
(
CMAKE_DETERMINE_COMPILER_ABI lang src
)
IF
(
NOT DEFINED CMAKE_DETERMINE_
${
lang
}
_ABI_COMPILED
)
MESSAGE
(
STATUS
"Detecting
${
lang
}
compiler info"
)
MESSAGE
(
STATUS
"Detecting
${
lang
}
compiler
ABI
info"
)
# Compile the ABI identification source.
SET
(
BIN
"
${
CMAKE_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/CMakeDetermineCompilerABI_
${
lang
}
.bin"
)
...
...
@@ -17,9 +17,9 @@ FUNCTION(CMAKE_DETERMINE_COMPILER_ABI lang src)
# Load the resulting information strings.
IF
(
CMAKE_DETERMINE_
${
lang
}
_ABI_COMPILED
)
MESSAGE
(
STATUS
"Detecting
${
lang
}
compiler info - done"
)
MESSAGE
(
STATUS
"Detecting
${
lang
}
compiler
ABI
info - done"
)
FILE
(
APPEND
${
CMAKE_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/CMakeOutput.log
"Detecting
${
lang
}
compiler info compiled with the following output:
\n
${
OUTPUT
}
\n\n
"
)
"Detecting
${
lang
}
compiler
ABI
info compiled with the following output:
\n
${
OUTPUT
}
\n\n
"
)
FILE
(
STRINGS
"
${
BIN
}
"
ABI_STRINGS LIMIT_COUNT 2 REGEX
"INFO:[^[]*
\\
["
)
FOREACH
(
info
${
ABI_STRINGS
}
)
IF
(
"
${
info
}
"
MATCHES
".*INFO:sizeof_dptr
\\
[0*([^]]*)
\\
].*"
)
...
...
@@ -41,9 +41,9 @@ FUNCTION(CMAKE_DETERMINE_COMPILER_ABI lang src)
ENDIF
(
ABI_NAME
)
ELSE
(
CMAKE_DETERMINE_
${
lang
}
_ABI_COMPILED
)
MESSAGE
(
STATUS
"Detecting
${
lang
}
compiler info - failed"
)
MESSAGE
(
STATUS
"Detecting
${
lang
}
compiler
ABI
info - failed"
)
FILE
(
APPEND
${
CMAKE_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/CMakeError.log
"Detecting
${
lang
}
compiler info failed to compile with the following output:
\n
${
OUTPUT
}
\n\n
"
)
"Detecting
${
lang
}
compiler
ABI
info failed to compile with the following output:
\n
${
OUTPUT
}
\n\n
"
)
ENDIF
(
CMAKE_DETERMINE_
${
lang
}
_ABI_COMPILED
)
ENDIF
(
NOT DEFINED CMAKE_DETERMINE_
${
lang
}
_ABI_COMPILED
)
ENDFUNCTION
(
CMAKE_DETERMINE_COMPILER_ABI
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment