Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
e1c2e72e
Commit
e1c2e72e
authored
Jul 05, 2010
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temporarily turned off PCH support for GCC 4.1, since it causes "undefined main" error
parent
9cf319d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
OpenCVPCHSupport.cmake
OpenCVPCHSupport.cmake
+9
-9
No files found.
OpenCVPCHSupport.cmake
View file @
e1c2e72e
...
@@ -19,23 +19,23 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
...
@@ -19,23 +19,23 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
ARGS
${
CMAKE_CXX_COMPILER_ARG1
}
-dumpversion
ARGS
${
CMAKE_CXX_COMPILER_ARG1
}
-dumpversion
OUTPUT_VARIABLE gcc_compiler_version
)
OUTPUT_VARIABLE gcc_compiler_version
)
#MESSAGE("GCC Version: ${gcc_compiler_version}")
#MESSAGE("GCC Version: ${gcc_compiler_version}")
IF
(
gcc_compiler_version MATCHES
"4
\\
.[0-9]
\\
.[0-9]"
)
IF
(
gcc_compiler_version MATCHES
"4
\\
.[0
,2
-9]
\\
.[0-9]"
)
SET
(
PCHSupport_FOUND TRUE
)
SET
(
PCHSupport_FOUND TRUE
)
ELSE
(
gcc_compiler_version MATCHES
"4
\\
.[0-9]
\\
.[0-9]"
)
ELSE
()
IF
(
gcc_compiler_version MATCHES
"3
\\
.4
\\
.[0-9]"
)
IF
(
gcc_compiler_version MATCHES
"3
\\
.4
\\
.[0-9]"
)
SET
(
PCHSupport_FOUND TRUE
)
SET
(
PCHSupport_FOUND TRUE
)
ENDIF
(
gcc_compiler_version MATCHES
"3
\\
.4
\\
.[0-9]"
)
ENDIF
()
ENDIF
(
gcc_compiler_version MATCHES
"4
\\
.[0-9]
\\
.[0-9]"
)
ENDIF
()
SET
(
_PCH_include_prefix
"-I"
)
SET
(
_PCH_include_prefix
"-I"
)
ELSE
(
CMAKE_COMPILER_IS_GNUCXX
)
ELSE
()
IF
(
WIN32
)
IF
(
WIN32
)
SET
(
PCHSupport_FOUND TRUE
)
# for experimental msvc support
SET
(
PCHSupport_FOUND TRUE
)
# for experimental msvc support
SET
(
_PCH_include_prefix
"/I"
)
SET
(
_PCH_include_prefix
"/I"
)
ELSE
(
WIN32
)
ELSE
()
SET
(
PCHSupport_FOUND FALSE
)
SET
(
PCHSupport_FOUND FALSE
)
ENDIF
(
WIN32
)
ENDIF
()
ENDIF
(
CMAKE_COMPILER_IS_GNUCXX
)
ENDIF
(
CMAKE_COMPILER_IS_GNUCXX
)
...
@@ -52,9 +52,9 @@ MACRO(_PCH_GET_COMPILE_FLAGS _out_compile_flags)
...
@@ -52,9 +52,9 @@ MACRO(_PCH_GET_COMPILE_FLAGS _out_compile_flags)
LIST
(
APPEND
${
_out_compile_flags
}
"
${${
_out_compile_flags
}}
-fPIC"
)
LIST
(
APPEND
${
_out_compile_flags
}
"
${${
_out_compile_flags
}}
-fPIC"
)
ENDIF
()
ENDIF
()
ELSE
(
CMAKE_COMPILER_IS_GNUCXX
)
ELSE
()
## TODO ... ? or does it work out of the box
## TODO ... ? or does it work out of the box
ENDIF
(
CMAKE_COMPILER_IS_GNUCXX
)
ENDIF
()
GET_DIRECTORY_PROPERTY
(
DIRINC INCLUDE_DIRECTORIES
)
GET_DIRECTORY_PROPERTY
(
DIRINC INCLUDE_DIRECTORIES
)
FOREACH
(
item
${
DIRINC
}
)
FOREACH
(
item
${
DIRINC
}
)
...
...
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