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
e1397f6c
Commit
e1397f6c
authored
Aug 23, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Aug 23, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1324 from SpecLad:try-compile
parents
ceb522ad
a9e9ce85
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
14 deletions
+12
-14
OpenCVCRTLinkage.cmake
cmake/OpenCVCRTLinkage.cmake
+2
-2
OpenCVFindLibsGUI.cmake
cmake/OpenCVFindLibsGUI.cmake
+4
-5
OpenCVFindLibsVideo.cmake
cmake/OpenCVFindLibsVideo.cmake
+5
-6
OpenCVUtils.cmake
cmake/OpenCVUtils.cmake
+1
-1
No files found.
cmake/OpenCVCRTLinkage.cmake
View file @
e1397f6c
...
...
@@ -26,8 +26,8 @@ else()
set
(
HAVE_MSVC2012 TRUE
)
endif
()
TRY_COMPILE
(
HAVE_WINRT_SDK
"
${
O
PENCV_BINARY_DIR
}
/CMakeFiles/CMakeTmp
"
try_compile
(
HAVE_WINRT_SDK
"
${
O
penCV_BINARY_DIR
}
"
"
${
OpenCV_SOURCE_DIR
}
/cmake/checks/winrttest.cpp"
)
if
(
ENABLE_WINRT_MODE AND HAVE_WINRT_SDK AND HAVE_MSVC2012 AND HAVE_MSPDK
)
...
...
cmake/OpenCVFindLibsGUI.cmake
View file @
e1397f6c
...
...
@@ -5,12 +5,11 @@
#--- Win32 UI ---
ocv_clear_vars
(
HAVE_WIN32UI
)
if
(
WITH_WIN32UI
)
TRY_COMPILE
(
HAVE_WIN32UI
"
${
O
PENCV_BINARY_DIR
}
/CMakeFiles/CMakeTmp
"
try_compile
(
HAVE_WIN32UI
"
${
O
penCV_BINARY_DIR
}
"
"
${
OpenCV_SOURCE_DIR
}
/cmake/checks/win32uitest.cpp"
CMAKE_FLAGS
"
\"
user32.lib
\"
\"
gdi32.lib
\"
"
OUTPUT_VARIABLE OUTPUT
)
endif
(
WITH_WIN32UI
)
CMAKE_FLAGS
"-DLINK_LIBRARIES:STRING=user32;gdi32"
)
endif
()
# --- QT4 ---
ocv_clear_vars
(
HAVE_QT HAVE_QT5
)
...
...
cmake/OpenCVFindLibsVideo.cmake
View file @
e1397f6c
...
...
@@ -3,13 +3,12 @@
# ----------------------------------------------------------------------------
ocv_clear_vars
(
HAVE_VFW
)
if
(
WITH_VFW
)
TRY_COMPILE
(
HAVE_VFW
"
${
O
PENCV_BINARY_DIR
}
/CMakeFiles/CMakeTmp
"
if
(
WITH_VFW
)
try_compile
(
HAVE_VFW
"
${
O
penCV_BINARY_DIR
}
"
"
${
OpenCV_SOURCE_DIR
}
/cmake/checks/vfwtest.cpp"
CMAKE_FLAGS
"-DLINK_LIBRARIES:STRING=vfw32"
OUTPUT_VARIABLE OUTPUT
)
endif
(
WITH_VFW
)
CMAKE_FLAGS
"-DLINK_LIBRARIES:STRING=vfw32"
)
endif
(
WITH_VFW
)
# --- GStreamer ---
ocv_clear_vars
(
HAVE_GSTREAMER
)
...
...
cmake/OpenCVUtils.cmake
View file @
e1397f6c
...
...
@@ -77,7 +77,7 @@ MACRO(ocv_check_compiler_flag LANG FLAG RESULT)
if
(
_fname
)
MESSAGE
(
STATUS
"Performing Test
${
RESULT
}
"
)
TRY_COMPILE
(
${
RESULT
}
${
CMAKE_BINARY_DIR
}
"
${
CMAKE_BINARY_DIR
}
"
"
${
_fname
}
"
COMPILE_DEFINITIONS
"
${
FLAG
}
"
OUTPUT_VARIABLE OUTPUT
)
...
...
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