diff --git a/CMakeLists.txt b/CMakeLists.txt
index 044b9c0d8c9dc3adb125ddb46b8bfd6ace9e6b9b..b8d5802a83f25bf061f7fd453bc8b981c4130774 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,7 +39,6 @@ add_library(common OBJECT
 # Specify the .cpp files for the executables
 file(GLOB x86_main_SRC "src/Platform/x86/*.cpp")
 add_executable(ecss_services
-        src/main.cpp
         $<TARGET_OBJECTS:common>
         ${x86_main_SRC}
         )
diff --git a/src/main.cpp b/src/Platform/x86/main.cpp
similarity index 100%
rename from src/main.cpp
rename to src/Platform/x86/main.cpp