diff --git a/.gitignore b/.gitignore
index bca8fd91853cc9814941f86d1036db4f7c73fd1d..db7a40bee46e0e4dbd9dfcd80178d47317bd0d6a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -69,10 +69,6 @@ obj/
 
 ### Code ###
 .vscode/*
-!.vscode/settings.json
-!.vscode/tasks.json
-!.vscode/launch.json
-!.vscode/extensions.json
 
 ### Eclipse ###
 .metadata
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1671ea6e8940981852f09817de297f34c0efc4a2..75501968016a05c73838e2c2da7146cabb2cf408 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,7 +29,7 @@ set(SPOT_DIR "${CMAKE_BINARY_DIR}/third-party/spot")
 ExternalProject_Add(SpotLibrary
   PREFIX            ${SPOT_DIR}
   SOURCE_DIR        ${SPOT_SOURCE_DIR}
-  CONFIGURE_COMMAND ${SPOT_SOURCE_DIR}/configure --disable-python --prefix=<INSTALL_DIR>
+  CONFIGURE_COMMAND autoreconf -if ${SPOT_SOURCE_DIR} && ${SPOT_SOURCE_DIR}/configure --disable-python --prefix=<INSTALL_DIR>
   BUILD_COMMAND     make -j
 )
 include_directories("${SPOT_DIR}/include")