Hello. Project with main.c seems to compiles fine. But main.cpp fall with "CMake can not determine linker language for target" error on CMake initialization.
If Im add next string to CMakeLists.txt:
set_target_properties( PROPERTIES LINKER_LANGUAGE CXX)
Then, the cmake initalizes, but main.cpp ignored on compilation. The empty project will builded.
Hello. Project with main.c seems to compiles fine. But main.cpp fall with "CMake can not determine linker language for target" error on CMake initialization.
If Im add next string to CMakeLists.txt:
set_target_properties( PROPERTIES LINKER_LANGUAGE CXX)
Then, the cmake initalizes, but main.cpp ignored on compilation. The empty project will builded.