Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
3d43e7eb
Commit
3d43e7eb
authored
Oct 11, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: fix try_compile directory
It is required for proper work of toolchains
parent
e8c109bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
CMakeLists.txt
modules/sfm/CMakeLists.txt
+1
-1
No files found.
modules/sfm/CMakeLists.txt
View file @
3d43e7eb
...
@@ -12,7 +12,7 @@ endif()
...
@@ -12,7 +12,7 @@ endif()
if
((
gflags_FOUND OR GFLAGS_FOUND
)
AND
(
glog_FOUND OR GLOG_FOUND
))
if
((
gflags_FOUND OR GFLAGS_FOUND
)
AND
(
glog_FOUND OR GLOG_FOUND
))
set
(
_fname
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_sfm_deps.cpp"
)
set
(
_fname
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_sfm_deps.cpp"
)
file
(
WRITE
"
${
_fname
}
"
"#include <glog/logging.h>
\n
#include <gflags/gflags.h>
\n
int main() { (void)(0); return 0; }
\n
"
)
file
(
WRITE
"
${
_fname
}
"
"#include <glog/logging.h>
\n
#include <gflags/gflags.h>
\n
int main() { (void)(0); return 0; }
\n
"
)
try_compile
(
SFM_DEPS_OK
"
${
CMAKE_
CURRENT_
BINARY_DIR
}
"
"
${
_fname
}
"
try_compile
(
SFM_DEPS_OK
"
${
CMAKE_BINARY_DIR
}
"
"
${
_fname
}
"
CMAKE_FLAGS
"-DINCLUDE_DIRECTORIES:STRING=
${
GLOG_INCLUDE_DIRS
}
;
${
GFLAGS_INCLUDE_DIRS
}
"
CMAKE_FLAGS
"-DINCLUDE_DIRECTORIES:STRING=
${
GLOG_INCLUDE_DIRS
}
;
${
GFLAGS_INCLUDE_DIRS
}
"
LINK_LIBRARIES
${
GLOG_LIBRARIES
}
${
GFLAGS_LIBRARIES
}
LINK_LIBRARIES
${
GLOG_LIBRARIES
}
${
GFLAGS_LIBRARIES
}
OUTPUT_VARIABLE OUTPUT
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