diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 666105f46..bc1271faf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -6,7 +6,8 @@ file(GLOB_RECURSE CRYPTONOTE_CORE cryptonote_core/*) file(GLOB_RECURSE CRYPTONOTE_PROTOCOL cryptonote_protocol/*) file(GLOB_RECURSE DAEMON daemon/*.cpp) if(WIN32) - list(REMOVE_ITEM DAEMON "daemon/posix_fork.cpp") + file(GLOB_RECURSE DAEMON_POSIX daemon/posix_fork.cpp) + list(REMOVE_ITEM DAEMON "${DAEMON_POSIX}") endif() file(GLOB_RECURSE P2P p2p/*) file(GLOB_RECURSE RPC rpc/*)