Closed kktse closed 2 years ago
Hello Kelvin. Good, there's another instance of that same bit in src/main/c/CMakeLists.txt
. Do you want to update it too? Cheers
Thank you Kelvin
Huh, for some reason this edit did not work as expected. The purpose of these lines are to skip the compilation of libfastestlapc when MSYS and Debug mode are used, because of some gnarly linker errors I honestly do not want to lose time in investigate.
Background
Build option
CMAKE_BUILD_TYPE
is 'mandatory' because STREQUAL expects an argument. Force the expression to evaluate early by checking the existence ofCMAKE_BUILD_TYPE
. This makesCMAKE_BUILD_TYPE
an optional build argument. Defaults to Release. Fixes build errors when using Docker build script, where at this time, cmake build flags can not be passed into the script.Tested
Without changes
With changes prevents this error.
Checklist
Before submitting a pull request, make sure you satisfy all of the following points:
If it contains source code, comply with the coding guidelinesAdd new tests for new features