We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59125ac commit da7a0ebCopy full SHA for da7a0eb
src/CMakeLists.txt
@@ -7,16 +7,16 @@ project(wazuh-agent)
7
include(cmake/CommonSettings.cmake)
8
set_common_settings()
9
10
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX-")
11
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX-")
12
-add_compile_options(/w)
13
-
14
-if (NOT WIN32)
+if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
15
add_custom_target(external_deps ALL
16
COMMAND ${CMAKE_MAKE_PROGRAM} -C ${CMAKE_SOURCE_DIR}
17
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
18
COMMENT "Downloading external dependencies"
19
)
+else()
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX-")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX-")
+ add_compile_options(/w)
20
endif()
21
22
add_subdirectory(common)
0 commit comments