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
6a1a1b63
Commit
6a1a1b63
authored
Oct 01, 2008
by
Bill Hoffman
Browse files
BUG: fix for bug 4772, enable_language should now work on linux with correct flags
parent
4c17c9b8
Changes
2
Show whitespace changes
Inline
Side-by-side
Modules/CMakeCInformation.cmake
View file @
6a1a1b63
...
...
@@ -32,10 +32,20 @@ ENDIF(CMAKE_SYSTEM_PROCESSOR)
# load the system- and compiler specific files
IF
(
CMAKE_C_COMPILER_ID
)
INCLUDE
(
Platform/
${
CMAKE_SYSTEM_NAME
}
-
${
CMAKE_C_COMPILER_ID
}
-C OPTIONAL RESULT_VARIABLE _INCLUDED_FILE
)
INCLUDE
(
Platform/
${
CMAKE_SYSTEM_NAME
}
-
${
CMAKE_C_COMPILER_ID
}
-C
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE
)
ENDIF
(
CMAKE_C_COMPILER_ID
)
IF
(
NOT _INCLUDED_FILE
)
INCLUDE
(
Platform/
${
CMAKE_SYSTEM_NAME
}
-
${
CMAKE_BASE_NAME
}
OPTIONAL
)
INCLUDE
(
Platform/
${
CMAKE_SYSTEM_NAME
}
-
${
CMAKE_BASE_NAME
}
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE
)
ENDIF
(
NOT _INCLUDED_FILE
)
# some systems include the compiler information in the system file
# and if this is the enable_language command then it may not have been
# included at this point, or needs to be included again so that the
# language_INIT variables are set correctly
IF
(
NOT _INCLUDED_FILE
)
INCLUDE
(
Platform/
${
CMAKE_SYSTEM_NAME
}
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE
)
ENDIF
(
NOT _INCLUDED_FILE
)
...
...
Modules/Platform/Linux.cmake
View file @
6a1a1b63
...
...
@@ -59,3 +59,5 @@ INCLUDE(Platform/UnixPaths)
IF
(
EXISTS
"/etc/debian_version"
)
SET_PROPERTY
(
GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS FALSE
)
ENDIF
(
EXISTS
"/etc/debian_version"
)
# always include the gcc compiler information
INCLUDE
(
Platform/gcc
)
Write
Preview
Markdown
is supported
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