Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let DataMan_ROOT_DIR be specified by either a CMake or Env variable #19

Merged
merged 1 commit into from
Mar 31, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cmake/FindDataMan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@
# You can also set the following variable to help guide the search:
# DataMan_ROOT_DIR - The install prefix for DataMan containing the
# include and lib folders
# Note: this can be set as a CMake variable or an
# environment variable. If specified as a CMake
# variable, it will override any setting specified
# as an environment variable.

if(NOT DataMan_FOUND)
if((NOT DataMan_ROOT_DIR) AND (NOT (ENV{DataMan_ROOT_DIR} STREQUAL "")))
set(DataMan_ROOT_DIR "$ENV{DataMan_ROOT_DIR}")
endif()

# Search for the core libraries
if(DataMan_ROOT_DIR)
# If a root directory is specified, then don't look anywhere else
Expand Down