Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
056697d9
Unverified
Commit
056697d9
authored
Sep 29, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imported libname for stdc++fs
parent
2681cfad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
CMakeLists.txt
+0
-3
cmake/FindFilesystem.cmake
+4
-3
No files found.
CMakeLists.txt
View file @
056697d9
...
...
@@ -48,9 +48,6 @@ find_package(Filesystem REQUIRED)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"GNU"
)
# https://stackoverflow.com/questions/63902528/program-crashes-when-filesystempath-is-destroyed
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 8.4.0
)
message
(
WARNING
"Your gnu compiler is perhaps too old, please use a more recent one if you get a segmentation in the build process when running symop-map-generator"
)
endif
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wall -Wno-unused-parameter -Wno-missing-field-initializers"
)
endif
()
if
(
MSVC
)
...
...
cmake/FindFilesystem.cmake
View file @
056697d9
...
...
@@ -56,11 +56,11 @@ if(_found)
set_property
(
TARGET std::filesystem APPEND PROPERTY INTERFACE_COMPILE_FEATURES cxx_std_17
)
if
(
CXX_FILESYSTEM_NO_LINK_NEEDED
)
# Nothing to add...
# Nothing to add...
elseif
(
CXX_FILESYSTEM_STDCPPFS_NEEDED
)
set_
property
(
TARGET std::filesystem APPEND PROPERTY INTERFACE_LINK_LIBRARIES -l
stdc++fs
)
set_
target_properties
(
std::filesystem PROPERTIES IMPORTED_LIBNAME
stdc++fs
)
elseif
(
CXX_FILESYSTEM_CPPFS_NEEDED
)
set_
property
(
TARGET std::filesystem APPEND PROPERTY INTERFACE_LINK_LIBRARIES -l
c++fs
)
set_
target_properties
(
std::filesystem PROPERTIES IMPORTED_LIBNAME
c++fs
)
endif
()
endif
()
...
...
@@ -71,3 +71,4 @@ set(Filesystem_FOUND ${_found} CACHE BOOL "TRUE if we can run a program using st
if
(
Filesystem_FIND_REQUIRED AND NOT Filesystem_FOUND
)
message
(
FATAL_ERROR
"Cannot run simple program using std::filesystem"
)
endif
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment