mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-05 20:30:41 +02:00
fix
This commit is contained in:
parent
75f83e5e3b
commit
8ea4372cf1
@ -5,7 +5,7 @@ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(link_std_fs)
|
function(set_std_fs_lib)
|
||||||
# from pybind11
|
# from pybind11
|
||||||
# Check if we need to add -lstdc++fs or -lc++fs or nothing
|
# Check if we need to add -lstdc++fs or -lc++fs or nothing
|
||||||
if(DEFINED CMAKE_CXX_STANDARD AND CMAKE_CXX_STANDARD LESS 17)
|
if(DEFINED CMAKE_CXX_STANDARD AND CMAKE_CXX_STANDARD LESS 17)
|
||||||
@ -34,11 +34,11 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${STD_FS_NEEDS_STDCXXFS})
|
if(${STD_FS_NEEDS_STDCXXFS})
|
||||||
set(STD_FS_LIB stdc++fs)
|
set(STD_FS_LIB stdc++fs PARENT_SCOPE)
|
||||||
elseif(${STD_FS_NEEDS_CXXFS})
|
elseif(${STD_FS_NEEDS_CXXFS})
|
||||||
set(STD_FS_LIB c++fs)
|
set(STD_FS_LIB c++fs PARENT_SCOPE)
|
||||||
elseif(${STD_FS_NO_LIB_NEEDED})
|
elseif(${STD_FS_NO_LIB_NEEDED})
|
||||||
set(STD_FS_LIB "")
|
set(STD_FS_LIB "" PARENT_SCOPE)
|
||||||
else()
|
else()
|
||||||
message(WARNING "Unknown C++17 compiler - not passing -lstdc++fs")
|
message(WARNING "Unknown C++17 compiler - not passing -lstdc++fs")
|
||||||
set(STD_FS_LIB "")
|
set(STD_FS_LIB "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user