Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
CMake
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3,195
Issues
3,195
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CMake
CMake
Commits
1e3ddfee
Commit
1e3ddfee
authored
Nov 21, 2002
by
Bill Hoffman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to fix check for ansi stream
parent
02d423b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
Modules/CheckIncludeFileCXX.cmake
Modules/CheckIncludeFileCXX.cmake
+3
-0
Modules/TestForANSIStreamHeaders.cmake
Modules/TestForANSIStreamHeaders.cmake
+3
-7
No files found.
Modules/CheckIncludeFileCXX.cmake
View file @
1e3ddfee
...
...
@@ -7,6 +7,7 @@
#
MACRO
(
CHECK_INCLUDE_FILE_CXX INCLUDE VARIABLE
)
MESSAGE
(
STATUS
"Checking for CXX include file
${
INCLUDE
}
"
)
SET
(
CHECK_INCLUDE_FILE_VAR
${
INCLUDE
}
)
CONFIGURE_FILE
(
${
CMAKE_ROOT
}
/Modules/CheckIncludeFile.cxx.in
${
PROJECT_BINARY_DIR
}
/CMakeTmp/CheckIncludeFile.cxx IMMEDIATE
)
...
...
@@ -16,8 +17,10 @@ MACRO(CHECK_INCLUDE_FILE_CXX INCLUDE VARIABLE)
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=
${
CMAKE_ANSI_CXXFLAGS
}
OUTPUT_VARIABLE OUTPUT
)
IF
(
${
VARIABLE
}
)
MESSAGE
(
STATUS
"Checking for CXX include file
${
INCLUDE
}
-- found"
)
SET
(
${
VARIABLE
}
1 CACHE INTERNAL
"Have include
${
INCLUDE
}
"
)
ELSE
(
${
VARIABLE
}
)
MESSAGE
(
STATUS
"Checking for CXX include file
${
INCLUDE
}
-- not found"
)
SET
(
${
VARIABLE
}
""
CACHE INTERNAL
"Have include
${
INCLUDE
}
"
)
WRITE_FILE
(
${
PROJECT_BINARY_DIR
}
/CMakeError.log
"Determining if the include file
${
INCLUDE
}
"
...
...
Modules/TestForANSIStreamHeaders.cmake
View file @
1e3ddfee
...
...
@@ -3,18 +3,14 @@
#
# CMAKE_NO_ANSI_STREAM_HEADERS - defined accoreding to the results
#
INCLUDE
(
${
CMAKE_ROOT
}
/Modules/CheckIncludeFileCXX.cmake
)
IF
(
NOT CMAKE_NO_ANSI_STREAM_HEADERS
)
MESSAGE
(
STATUS
"Check for ANSI stream headers"
)
TRY_COMPILE
(
CMAKE_ANSI_STREAM_HEADERS
${
PROJECT_BINARY_DIR
}
${
CMAKE_ROOT
}
/Modules/TestForANSIStreamHeaders.cxx
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=
${
CMAKE_ANSI_CXXFLAGS
}
)
CHECK_INCLUDE_FILE_CXX
(
iostream CMAKE_ANSI_STREAM_HEADERS
)
IF
(
CMAKE_ANSI_STREAM_HEADERS
)
MESSAGE
(
STATUS
"Check for ANSI stream headers - found"
)
SET
(
CMAKE_NO_ANSI_STREAM_HEADERS 0 CACHE INTERNAL
"Does the compiler support headers like iostream."
)
ELSE
(
CMAKE_ANSI_STREAM_HEADERS
)
MESSAGE
(
STATUS
"Check for ANSI stream headers - not found"
)
ELSE
(
CMAKE_ANSI_STREAM_HEADERS
)
SET
(
CMAKE_NO_ANSI_STREAM_HEADERS 1 CACHE INTERNAL
"Does the compiler support headers like iostream."
)
ENDIF
(
CMAKE_ANSI_STREAM_HEADERS
)
...
...
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