-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
Why is in Cmake the compiler forced to use the C++ compiler?
if (WIN32)
#The MSVC C compiler is too out of date,
#so the sources have to be compiled as c++
if (MSVC AND NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
enable_language(CXX)
file(GLOB sources "${SOURCE_DIR}/src/*.c")
set_source_files_properties(
${sources}
PROPERTIES LANGUAGE CXX
)
endif()
set(MORE_LIBRARIES ws2_32 Rpcrt4 Iphlpapi)
endif()
This gives errors when using ifdef cplusplus from what I've seen so far.
What was the reasoning behind this? Is it really needed?
Metadata
Metadata
Assignees
Labels
No labels