Compare commits

...

3 Commits

Author SHA1 Message Date
06bd55c165
fix link
Some checks are pending
ContinuousIntegration / macos (push) Waiting to run
ContinuousIntegration / windows (push) Waiting to run
ContinuousIntegration / linux (push) Successful in 20s
2024-06-10 22:39:56 +02:00
f275cb02d4
fix macos 2024-06-10 22:37:46 +02:00
95552a2bf3
switch to https://github.com/ThomasMonkman/filewatch/pull/45 2024-06-10 22:35:05 +02:00
2 changed files with 8 additions and 3 deletions

View File

@ -22,8 +22,10 @@ endif()
if (NOT TARGET filewatch) if (NOT TARGET filewatch)
FetchContent_Declare(filewatch FetchContent_Declare(filewatch
GIT_REPOSITORY https://github.com/ThomasMonkman/filewatch.git #GIT_REPOSITORY https://github.com/ThomasMonkman/filewatch.git
GIT_TAG master GIT_REPOSITORY https://github.com/justinboswell/filewatch
#GIT_TAG master
GIT_TAG 2cef7983449579555799065f31d022b86b739d62
EXCLUDE_FROM_ALL EXCLUDE_FROM_ALL
) )
@ -37,5 +39,8 @@ if (NOT TARGET filewatch)
) )
target_include_directories(filewatch INTERFACE ${filewatch_SOURCE_DIR}) target_include_directories(filewatch INTERFACE ${filewatch_SOURCE_DIR})
target_compile_features(filewatch INTERFACE cxx_std_11) target_compile_features(filewatch INTERFACE cxx_std_11)
if(APPLE)
target_link_libraries(filewatch INTERFACE "-framework CoreServices")
endif()
endif() endif()
endif() endif()

View File

@ -22,7 +22,7 @@ bool Factorio::onEvent(const Message::Events::MessageConstruct& e) {
return false; return false;
} }
void onFileEvent(const std::string& path, const filewatch::Event change_type) { void Factorio::onFileEvent(const std::string& path, const filewatch::Event change_type) {
std::cout << "file even " << filewatch::event_to_string(change_type) << " on '" << path << "'\n"; std::cout << "file even " << filewatch::event_to_string(change_type) << " on '" << path << "'\n";
} }