Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dssp
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
dssp
Commits
d1152980
Unverified
Commit
d1152980
authored
Sep 29, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
findfilesystem, unit test platform agnostic
parent
7be15ced
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
cmake/FindFilesystem.cmake
+4
-3
test/unit-test.cpp
+1
-1
No files found.
cmake/FindFilesystem.cmake
View file @
d1152980
...
...
@@ -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
()
test/unit-test.cpp
View file @
d1152980
...
...
@@ -54,7 +54,7 @@ BOOST_AUTO_TEST_CASE(ut_dssp)
writeDSSP
(
structure
,
dssp
,
test
);
std
::
ifstream
reference
(
"1cbs.dssp"
,
std
::
ios
::
binary
);
std
::
ifstream
reference
(
"1cbs.dssp"
);
BOOST_CHECK
(
reference
.
is_open
());
...
...
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