Hey folks, I once again need some help with my CMake configuration... I have the following CMakeLists file: https://github.com/Ttibsi/winter/blob/public-interface/CMakeLists.txt that should be calling the build_tests() function when I pass the RUN_TESTS=true parameter. I can confirm that the function is being called from the Message, but this function defined here: https://github.com/Ttibsi/winter/blob/public-interface/tests/test.cmake isn't building the second executable as defined. When I run cmake, I'm getting the following output:
$ cmake -DRUN_TESTS=true -B build && cmake --build build
-- The CXX compiler identification is GNU 14.3.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- UNIT TESTS ENABLED
Cloning into 'willow-src'...
HEAD is now at b0d38ed Changelog
-- Configuring done (0.6s)
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_CXX_COMPILER= /usr/bin/c++
-- The CXX compiler identification is GNU 14.3.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /home/auri/workspace/winter/build
[ 20%] Building CXX object src/winter/CMakeFiles/winter-lang.dir/helpers.cpp.o
[ 40%] Linking CXX static library libwinter-lang.a
[ 40%] Built target winter-lang
[ 60%] Building CXX object CMakeFiles/winter.dir/src/main.cpp.o
[ 80%] Building CXX object CMakeFiles/winter.dir/src/winter/helpers.cpp.o
[100%] Linking CXX executable winter
[100%] Built target winter