Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions abb_egm_hardware_interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
target_compile_options(${target_name} PRIVATE /W4)
endif()

## Restrict Windows header namespace usage
if (WIN32)
target_compile_definitions(${target_name} PUBLIC -DNOGDI)
endif()

#-----------------------------
# Executable target
#-----------------------------
Expand Down
5 changes: 5 additions & 0 deletions abb_egm_state_controller/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
target_compile_options(${target_name} PRIVATE /W4)
endif()

## Restrict Windows header namespace usage
if (WIN32)
target_compile_definitions(${target_name} PUBLIC -DNOGDI)
endif()

#===========================================================
# Install
#===========================================================
Expand Down