Skip to content

Commit b6f02e8

Browse files
committed
don't try_run if cross-compiling
We assume the user knows they have the correct STL if cross-compiling
1 parent 4ed761b commit b6f02e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/compilers.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if(LINUX AND CMAKE_CXX_COMPILER_ID MATCHES "IntelLLVM|NVHPC")
3636
endif()
3737

3838

39-
if(NOT MSVC AND NOT DEFINED ffilesystem_stdcpp_version)
39+
if(NOT MSVC AND NOT CMAKE_CROSSCOMPILING AND NOT DEFINED ffilesystem_stdcpp_version)
4040

4141
message(CHECK_START "Checking C++ standard library version")
4242
# Intel, IntelLLVM and NVHPC on Linux use GNU libstdc++, so we need to extract the libstdc++ version

0 commit comments

Comments
 (0)