From 11b38c464825172a23c1172e29f727fc82c8fec9 Mon Sep 17 00:00:00 2001 From: Alexei Kartashov Date: Sat, 25 Jan 2025 02:38:36 +0300 Subject: [PATCH] fix: stdc++fs is implemented in c++17 and does not exist in some linux distr --- CMakeLists.txt | 2 +- vctest/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index abfd430e..9f773002 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,7 @@ else() endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie -lstdc++fs") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie") endif() if(WIN32) diff --git a/vctest/CMakeLists.txt b/vctest/CMakeLists.txt index 916eef31..6f195fe9 100644 --- a/vctest/CMakeLists.txt +++ b/vctest/CMakeLists.txt @@ -35,7 +35,7 @@ else() endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie -lstdc++fs") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie") endif() target_include_directories(