Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moose
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sahil Moza
moose
Commits
efd282df
Commit
efd282df
authored
8 years ago
by
Dilawar Singh
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a typo in FindGSL file.
parent
68ca4c9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
moose-core/cmake_modules/FindGSL.cmake
+21
-17
21 additions, 17 deletions
moose-core/cmake_modules/FindGSL.cmake
with
21 additions
and
17 deletions
moose-core/cmake_modules/FindGSL.cmake
+
21
−
17
View file @
efd282df
...
...
@@ -25,7 +25,10 @@
#
# Set this envrionment variable to search in this path first.
message
(
STATUS
"GSL_ROOT_DIR value $ENV{GSL_ROOT_DIR}"
)
SET
(
GSL_ROOT_DIR $ENV{GSL_ROOT_DIR}
)
if
(
GSL_ROOT_DIR
)
message
(
STATUS
"Debug: GSL_ROOT_DIR value
${
GSL_ROOT_DIR
}
"
)
endif
(
GSL_ROOT_DIR
)
IF
(
WIN32
)
...
...
@@ -54,7 +57,7 @@ ELSE(WIN32)
IF
(
GSL_USE_STATIC_LIBRARIES
)
SET
(
GSL_LIB_NAMES libgsl.a
)
SET
(
GSL_CBLAS_LIB_NAMES libgslcla
b
s.a
)
SET
(
GSL_CBLAS_LIB_NAMES libgslc
b
las.a
)
ELSE
(
GSL_USE_STATIC_LIBRARIES
)
SET
(
GSL_LIB_NAMES gsl
)
SET
(
GSL_CBLAS_LIB_NAMES gslcblas
)
...
...
@@ -63,41 +66,42 @@ ELSE(WIN32)
FIND_LIBRARY
(
GSL_LIB
NAMES
${
GSL_LIB_NAMES
}
PATHS
$
ENV
{GSL_ROOT_DIR}/lib $
ENV
{GSL_ROOT_DIR}/lib64
${
GSL_ROOT_DIR
}
/lib
${
GSL_ROOT_DIR
}
/lib64
/opt/lib /opt/lib64
)
FIND_LIBRARY
(
GSLCBLAS_LIB
NAMES
${
GSL_CBLAS_LIB_NAMES
}
PATHS
$
ENV
{GSL_ROOT_DIR}/lib $
ENV
{GSL_ROOT_DIR}/lib64
${
GSL_ROOT_DIR
}
/lib
${
GSL_ROOT_DIR
}
/lib64
/opt/lib /opt/lib64
)
IF
(
GSL_LIB AND GSLCBLAS_LIB
)
SET
(
GSL_LIBRARIES
"
${
GSL_LIB
}
${
GSLCBLAS_LIB
}
"
)
ENDIF
(
GSL_LIB AND GSLCBLAS_LIB
)
FIND_PATH
(
GSL_INCLUDE_DIRS NAMES gsl/gsl_blas.h
PATHS
$ENV{GSL_ROOT_DIR}/include $ENV{GSL_ROOT_DIR}/include
/opt/include /opt/include
PATHS
${
GSL_ROOT_DIR
}
/include /opt/include
)
IF
(
GSL_LIB AND GSLCBLAS_LIB
)
SET
(
GSL_LIBRARIES
${
GSL_LIB
}
${
GSLCBLAS_LIB
}
)
ENDIF
(
GSL_LIB AND GSLCBLAS_LIB
)
ENDIF
(
WIN32
)
# FIND version
file
(
READ
"
${
GSL_INCLUDE_DIRS
}
/gsl/gsl_version.h"
GSL_VERSION_TEXT
)
string
(
REGEX REPLACE
".*define[ ]+GSL_MAJOR_VERSION[ ]*([0-9]+).*"
"
\\
1"
GSL_MAJOR_VERSION
"
${
GSL_VERSION_TEXT
}
"
)
string
(
REGEX REPLACE
".*define[ ]+GSL_MINOR_VERSION[ ]*([0-9]+).*"
"
\\
1"
GSL_MINOR_VERSION
"
${
GSL_VERSION_TEXT
}
"
)
set
(
GSL_VERSION
"
${
GSL_MAJOR_VERSION
}
.
${
GSL_MINOR_VERSION
}
"
)
if
(
GSL_INCLUDE_DIRS
)
file
(
READ
"
${
GSL_INCLUDE_DIRS
}
/gsl/gsl_version.h"
GSL_VERSION_TEXT
)
string
(
REGEX REPLACE
".*define[ ]+GSL_MAJOR_VERSION[ ]*([0-9]+).*"
"
\\
1"
GSL_MAJOR_VERSION
"
${
GSL_VERSION_TEXT
}
"
)
string
(
REGEX REPLACE
".*define[ ]+GSL_MINOR_VERSION[ ]*([0-9]+).*"
"
\\
1"
GSL_MINOR_VERSION
"
${
GSL_VERSION_TEXT
}
"
)
set
(
GSL_VERSION
"
${
GSL_MAJOR_VERSION
}
.
${
GSL_MINOR_VERSION
}
"
)
message
(
STATUS
"GSL version :
${
GSL_VERSION
}
"
)
endif
(
GSL_INCLUDE_DIRS
)
IF
(
GSL_LIBRARIES AND GSL_VERSION
)
IF
(
GSL_INCLUDE_DIRS
)
SET
(
GSL_FOUND 1
)
MESSAGE
(
STATUS
"Found GSL
${
GSL_LIBRARIES
}
"
)
SET
(
GSL_FOUND 1
)
ENDIF
(
GSL_INCLUDE_DIRS
)
ENDIF
()
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment