Skip to content

Commit 9f7f974

Browse files
paulgessingerMikkel Moller Modekjaer
authored andcommitted
revert: build: Add compile check for std::format (originally acts-project#4415) (acts-project#4418)
This reverts commit 52f80a4. This is causing issues in the Athena build. i'll come back to this next week.
1 parent 34c8fcf commit 9f7f974

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

cmake/ActsCompilerOptions.cmake

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,24 +67,3 @@ set(CMAKE_MACOSX_RPATH 1)
6767
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
6868
# set relative library path for ACTS libraries
6969
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}")
70-
71-
# Check compiler features that we require.
72-
# This is an alternative to requiring compiler version checks and is more generic
73-
check_cxx_source_compiles(
74-
"
75-
#include <format>
76-
#include <string>
77-
78-
int main() {
79-
std::string s = std::format(\"Hello, {}!\", \"World\");
80-
}
81-
"
82-
HAVE_STDFORMAT
83-
)
84-
85-
if(NOT HAVE_STDFORMAT)
86-
message(
87-
SEND_ERROR
88-
"C++20 std::format support is required, but not available in this compiler"
89-
)
90-
endif()

0 commit comments

Comments
 (0)