Compare commits
3 Commits
fcafb1bd7e
...
06bd55c165
Author | SHA1 | Date | |
---|---|---|---|
06bd55c165 | |||
f275cb02d4 | |||
95552a2bf3 |
9
external/CMakeLists.txt
vendored
9
external/CMakeLists.txt
vendored
@ -22,8 +22,10 @@ endif()
|
||||
|
||||
if (NOT TARGET filewatch)
|
||||
FetchContent_Declare(filewatch
|
||||
GIT_REPOSITORY https://github.com/ThomasMonkman/filewatch.git
|
||||
GIT_TAG master
|
||||
#GIT_REPOSITORY https://github.com/ThomasMonkman/filewatch.git
|
||||
GIT_REPOSITORY https://github.com/justinboswell/filewatch
|
||||
#GIT_TAG master
|
||||
GIT_TAG 2cef7983449579555799065f31d022b86b739d62
|
||||
EXCLUDE_FROM_ALL
|
||||
)
|
||||
|
||||
@ -37,5 +39,8 @@ if (NOT TARGET filewatch)
|
||||
)
|
||||
target_include_directories(filewatch INTERFACE ${filewatch_SOURCE_DIR})
|
||||
target_compile_features(filewatch INTERFACE cxx_std_11)
|
||||
if(APPLE)
|
||||
target_link_libraries(filewatch INTERFACE "-framework CoreServices")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
@ -22,7 +22,7 @@ bool Factorio::onEvent(const Message::Events::MessageConstruct& e) {
|
||||
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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user