-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 85e8ee7..c78dfc5 100755 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -192,9 +192,11 @@ if(NEED_BOOST_FS) | ||
else() | ||
option(HAS_STD_FILESYSTEM_PATH "use std::filesystem" ON) | ||
# HACK: Needed to be compiled on Yocto Linux | ||
- get_property(CAN_LINK_FS TARGET std::filesystem PROPERTY INTERFACE_LINK_LIBRARIES SET) | ||
- if ( CAN_LINK_FS ) | ||
- target_link_libraries(${PROJECT_NAME} PUBLIC std::filesystem) | ||
+ if(TARGET std::filesystem) | ||
+ get_property(CAN_LINK_FS TARGET std::filesystem PROPERTY INTERFACE_LINK_LIBRARIES SET) | ||
+ if ( CAN_LINK_FS ) | ||
+ target_link_libraries(${PROJECT_NAME} PUBLIC std::filesystem) | ||
+ endif() | ||
endif() | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters