Determining the compiler default C++ standard

Unless the project code does something with that, it is not meaningful to CMake. To request C++14 via the property/variable use either:

set_property(TARGET ${TARGET_NAME} PROPERTY CXX_STANDARD 14)

after creating the target, or

set(CMAKE_CXX_STANDARD 14)

before creating the target.