projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d40b37d
)
fixed compilation on Linux in static case
author
Alexander Shishkov
<no@email>
Fri, 17 Jun 2011 12:53:57 +0000
(12:53 +0000)
committer
Alexander Shishkov
<no@email>
Fri, 17 Jun 2011 12:53:57 +0000
(12:53 +0000)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
c58824b
..
fb76752
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-1066,9
+1066,10
@@
if(MSVC)
endif()
# Extra link libs if the user selects building static libs:
-
IF
(NOT BUILD_SHARED_LIBS)
+
if
(NOT BUILD_SHARED_LIBS)
if(CMAKE_COMPILER_IS_GNUCXX)
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} stdc++)
+ set(OPENCV_EXTRA_C_FLAGS "${OPENCV_EXTRA_C_FLAGS} -fPIC")
endif()
endif()