Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
d837b440
Commit
d837b440
authored
Dec 18, 2009
by
Peter Eastman
Browse files
Fixed problems finding OpenCL location
parent
48acdae0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
CMakeLists.txt
CMakeLists.txt
+0
-2
platforms/opencl/FindOpenCL.cmake
platforms/opencl/FindOpenCL.cmake
+7
-3
No files found.
CMakeLists.txt
View file @
d837b440
...
...
@@ -347,8 +347,6 @@ ENDIF(OPENCL_FOUND AND APPLE)
IF
(
OPENMM_BUILD_OPENCL_LIB
)
ADD_SUBDIRECTORY
(
platforms/opencl
)
ENDIF
(
OPENMM_BUILD_OPENCL_LIB
)
MARK_AS_ADVANCED
(
CLEAR OPENCL_INCLUDE_DIR
)
MARK_AS_ADVANCED
(
CLEAR OPENCL_LIBRARY
)
# FreeEnergy plugin
...
...
platforms/opencl/FindOpenCL.cmake
View file @
d837b440
MARK_AS_ADVANCED
(
CLEAR OPENCL_INCLUDE_DIR
)
MARK_AS_ADVANCED
(
CLEAR OPENCL_LIBRARY
)
set
(
ENV_OPENCL_DIR $ENV{OPENCL_DIR}
)
if
(
ENV_OPENCL_DIR
)
find_path
(
OPENCL_INCLUDE_DIR NAMES CL/cl.h PATHS $ENV{OPENCL_DIR}/include NO_DEFAULT_PATH
)
...
...
@@ -11,7 +13,11 @@ if(ENV_OPENCL_DIR)
endif
(
"
${
CMAKE_SYSTEM_NAME
}
"
MATCHES
"Linux"
)
find_library
(
OPENCL_LIBRARY NAMES OpenCL PATHS
${
OPENCL_LIB_SEARCH_PATH
}
NO_DEFAULT_PATH
)
else
(
ENV_OPENCL_DIR
)
find_path
(
OPENCL_INCLUDE_DIR NAMES CL/cl.h
)
if
(
APPLE
)
find_path
(
OPENCL_INCLUDE_DIR NAMES OpenCL/cl.h
)
else
(
APPLE
)
find_path
(
OPENCL_INCLUDE_DIR NAMES CL/cl.h
)
endif
(
APPLE
)
find_library
(
OPENCL_LIBRARY NAMES OpenCL
)
endif
(
ENV_OPENCL_DIR
)
...
...
@@ -23,5 +29,3 @@ if(OPENCL_FOUND)
else
(
OPENCL_FOUND
)
set
(
OPENCL_LIBRARIES
)
endif
(
OPENCL_FOUND
)
mark_as_advanced
(
OPENCL_INCLUDE_DIR OPENCL_LIBRARY
)
\ No newline at end of file
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