Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
gregor.olenik
OGL
Commits
5e48661e
Commit
5e48661e
authored
Apr 16, 2021
by
Gregor Olenik
Browse files
make OGL_USE_EXTERNAL_GINKGO an option
parent
53a9eecd
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
5e48661e
...
...
@@ -12,7 +12,7 @@ include(cmake/build_type_helpers.cmake)
list
(
APPEND CMAKE_MODULE_PATH
"
${
PROJECT_SOURCE_DIR
}
/cmake/Modules/"
)
include
(
CheckIncludeFileCXX
)
set
(
OGL_USE_EXTERNAL_GINKGO FALSE
)
option
(
OGL_USE_EXTERNAL_GINKGO
"Use external ginkgo"
FALSE
)
include
(
CheckIncludeFileCXX
)
check_include_file_cxx
(
cxxabi.h GKO_HAVE_CXXABI_H
)
...
...
@@ -23,9 +23,9 @@ include(cmake/install_helpers.cmake)
ginkgo_find_package
(
Ginkgo
"Ginkgo::ginkgo"
FALSE 1.4.0
)
add_subdirectory
(
third_party
)
if
(
NOT Ginkgo
)
find_package
(
Ginkgo 1.4.0 REQUIRED PATHS
${
CMAKE_CURRENT_BINARY_DIR
}
/third_party/ginkgo/build/install/lib/cmake
)
endif
()
#
if (NOT Ginkgo)
#
find_package(Ginkgo 1.4.0 REQUIRED PATHS ${CMAKE_CURRENT_BINARY_DIR}/third_party/ginkgo/build/install/lib/cmake)
#
endif()
# To interface with ginkgo at least C++ 14 is needed
set
(
CMAKE_CXX_STANDARD 14
)
...
...
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