Skip to content

Commit

Permalink
fix: windows compilation condition
Browse files Browse the repository at this point in the history
  • Loading branch information
cborla committed Sep 12, 2024
1 parent 59125ac commit da7a0eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ project(wazuh-agent)
include(cmake/CommonSettings.cmake)
set_common_settings()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX-")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX-")
add_compile_options(/w)

if (NOT WIN32)
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_custom_target(external_deps ALL
COMMAND ${CMAKE_MAKE_PROGRAM} -C ${CMAKE_SOURCE_DIR}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Downloading external dependencies"
)
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX-")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX-")
add_compile_options(/w)
endif()

add_subdirectory(common)
Expand Down

0 comments on commit da7a0eb

Please sign in to comment.