mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2026-11-17 02:25:42 +00:00
CMakeLists.txt: fix build without C++
Fix the following build failure without a C++ compiler: CMake Error at CMakeLists.txt:24 (project): No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
1 parent
1aa59aaa98
commit
17509d2ef4
2 files changed
+3
-1
No files matched your search
@@ -56,6 +56,8 @@ if(WIN32)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
enable_language(CXX)
|
||||
|
||||
add_compile_definitions(_CRT_SECURE_NO_WARNINGS=1)
|
||||
add_compile_definitions(_CRT_NONSTDC_NO_WARNINGS=1)
|
||||
add_compile_definitions(_WINSOCK_DEPRECATED_NO_WARNINGS=1)
|
||||
|
||||
Reference in new issue
Block a user