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

clean up cmake files #14

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
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
23 changes: 0 additions & 23 deletions cmake/CTestCustom.cmake.in

This file was deleted.

197 changes: 0 additions & 197 deletions cmake/CTestScript.cmake

This file was deleted.

23 changes: 0 additions & 23 deletions cmake/build_helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ function(ginkgo_default_includes name)
# set include path depending on used interface
target_include_directories("${name}"
PUBLIC
$<BUILD_INTERFACE:${NLA4HPC_BINARY_DIR}/include>
$<BUILD_INTERFACE:${NLA4HPC_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${NLA4HPC_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
)
endfunction()
Expand All @@ -22,23 +19,3 @@ macro(ginkgo_modify_flags name)
# the result var is ${name}_MODIFY
string(REPLACE "\"" "\\\"" ${name}_MODIFY "${${name}}")
endmacro()

# Extract the clang version from a clang executable path
function(ginkgo_extract_clang_version CLANG_COMPILER GINKGO_CLANG_VERSION)
set(CLANG_VERSION_PROG "#include <cstdio>\n"
"int main() {printf(\"%d.%d.%d\", __clang_major__, __clang_minor__, __clang_patchlevel__)\;"
"return 0\;}")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/extract_clang_ver.cpp" ${CLANG_VERSION_PROG})
execute_process(COMMAND ${CLANG_COMPILER} ${CMAKE_CURRENT_BINARY_DIR}/extract_clang_ver.cpp
-o ${CMAKE_CURRENT_BINARY_DIR}/extract_clang_ver
ERROR_VARIABLE CLANG_EXTRACT_VER_ERROR)
execute_process(COMMAND ${CMAKE_CURRENT_BINARY_DIR}/extract_clang_ver
OUTPUT_VARIABLE FOUND_CLANG_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_STRIP_TRAILING_WHITESPACE
)

set (${GINKGO_CLANG_VERSION} "${FOUND_CLANG_VERSION}" PARENT_SCOPE)
file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/extract_clang_ver.cpp)
file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/extract_clang_ver)
endfunction()
Loading