What kind of issue is this?
Operating system : Debian 9, kernel 4.9.168-1+deb9u3 x86_64
PlatformIO Version : 4.0.0b3
Python Version : 3.7.3
CLion Version : 2019.1.4
CMakeListsUser.txt is not included in the CMakeLists.txt file thus preventing the use of custom CMake operations.
message(${CMAKE_VERSION}) at the root of the project-- Configuring done
-- Generating done
CMakeListsUser.txt is not included.
3.14.3
-- Configuring done
-- Generating done
CMakeListsUser.txt is included.
From what I can make out, the if(EXISTS CMakeListsUser.txt) resolves relative paths from the cmake-build-debug directory but not include(CMakeListsUser.txt) , which resolves from the root of the project. In the current state, touching a "CMakeListsUser.txt" file in the cmake-build-debug directory makes it work as expected, but this should not be needed.
Changing if(EXISTS CMakeListsUser.txt) to if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/CMakeListsUser.txt) looks like a clean fix to me, better than what I initially proposed in my forum post.
Please re-test with pio upgrade --dev.
Works perfectly, thanks for the quick fix ! I am really looking forward to the release of platformio 4.0 !
It's planned for the beginning of next week.