Compare commits

..

No commits in common. "06bd55c165d4d28f112d9b05c8d67364f94ce36a" and "fcafb1bd7e6038ba268dd39b67d9593a48c6c224" have entirely different histories.

2 changed files with 3 additions and 8 deletions

View File

@ -22,10 +22,8 @@ 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_REPOSITORY https://github.com/justinboswell/filewatch GIT_TAG master
#GIT_TAG master
GIT_TAG 2cef7983449579555799065f31d022b86b739d62
EXCLUDE_FROM_ALL EXCLUDE_FROM_ALL
) )
@ -39,8 +37,5 @@ 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 Factorio::onFileEvent(const std::string& path, const filewatch::Event change_type) { void 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";
} }