Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VecCore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VecGeom
VecCore
Commits
bbf5a64a
Verified
Commit
bbf5a64a
authored
2 years ago
by
Guilherme Amadio
Browse files
Options
Downloads
Patches
Plain Diff
Default to native target ISA, always set build name
parent
d855d487
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
cmake/TestVecCore.cmake
+25
-15
25 additions, 15 deletions
cmake/TestVecCore.cmake
with
25 additions
and
15 deletions
cmake/TestVecCore.cmake
+
25
−
15
View file @
bbf5a64a
...
...
@@ -67,22 +67,32 @@ if(NOT DEFINED CTEST_CONFIGURATION_TYPE)
endif
()
endif
()
if
(
NOT DEFINED CTEST_BUILD_NAME
)
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
--system-information
OUTPUT_VARIABLE CMAKE_SYSTEM_INFORMATION ERROR_VARIABLE ERROR
)
if
(
ERROR
)
message
(
FATAL_ERROR
"Could not detect default configuration"
)
endif
()
string
(
REGEX REPLACE
".+CMAKE_CXX_COMPILER_ID
\"
([-0-9A-Za-z ]+)
\"
.*$"
"
\\
1"
COMPILER_ID
"
${
CMAKE_SYSTEM_INFORMATION
}
"
)
string
(
REGEX REPLACE
".+CMAKE_CXX_COMPILER_VERSION
\"
([^
\"
]+)
\"
.*$"
"
\\
1"
COMPILER_VERSION
"
${
CMAKE_SYSTEM_INFORMATION
}
"
)
set
(
CTEST_BUILD_NAME
"
${
CMAKE_SYSTEM_NAME
}
${
CMAKE_SYSTEM_PROCESSOR
}
"
)
set
(
CTEST_BUILD_NAME
"
${
CTEST_BUILD_NAME
}
${
COMPILER_ID
}
${
COMPILER_VERSION
}
"
)
set
(
CTEST_BUILD_NAME
"
${
CTEST_BUILD_NAME
}
${
CTEST_CONFIGURATION_TYPE
}
"
)
set
(
CTEST_BUILD_NAME
"
${
CTEST_BUILD_NAME
}
${
CTEST_SCRIPT_ARG
}
"
)
if
(
DEFINED CTEST_SCRIPT_ARG
)
set
(
TARGET_ISA
${
CTEST_SCRIPT_ARG
}
)
else
()
set
(
TARGET_ISA Native
)
endif
()
set
(
CTEST_BUILD_NAME
"
${
CMAKE_SYSTEM_NAME
}
"
)
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
--system-information
OUTPUT_VARIABLE CMAKE_SYSTEM_INFORMATION ERROR_VARIABLE ERROR
)
if
(
ERROR
)
message
(
FATAL_ERROR
"Cannot detect system information"
)
endif
()
string
(
REGEX REPLACE
".+CMAKE_CXX_COMPILER_ID
\"
([-0-9A-Za-z ]+)
\"
.*$"
"
\\
1"
COMPILER_ID
"
${
CMAKE_SYSTEM_INFORMATION
}
"
)
string
(
REPLACE
"GNU"
"GCC"
COMPILER_ID
"
${
COMPILER_ID
}
"
)
string
(
REGEX REPLACE
".+CMAKE_CXX_COMPILER_VERSION
\"
([^
\"
]+)
\"
.*$"
"
\\
1"
COMPILER_VERSION
"
${
CMAKE_SYSTEM_INFORMATION
}
"
)
string
(
APPEND CTEST_BUILD_NAME
"
${
COMPILER_ID
}
${
COMPILER_VERSION
}
"
)
string
(
APPEND CTEST_BUILD_NAME
"
${
CTEST_CONFIGURATION_TYPE
}
"
)
string
(
APPEND CTEST_BUILD_NAME
"
${
TARGET_ISA
}
"
)
set
(
CMAKE_ARGS
-DBUILD_BENCHMARKS=ON
-DBUILD_TESTING=ON
...
...
@@ -91,7 +101,7 @@ set(CMAKE_ARGS
-DBUILD_UMESIMD=
${
UNIX
}
-DBUILD_VC=
${
UNIX
}
-DCMAKE_DISABLE_FIND_PACKAGE_PkgConfig=
${
WIN32
}
-DTARGET_ISA=
${
CTEST_SCRIPT_ARG
}
-DTARGET_ISA=
${
TARGET_ISA
}
$ENV{CMAKE_ARGS}
${
CMAKE_ARGS
}
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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