Skip to content

Commit

Permalink
Added NOMINMAX flag to test
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
  • Loading branch information
jsan-rt committed Feb 20, 2023
1 parent c87b9cc commit 2fba8e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/unittest/rtps/DataSharing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set(SHMSEGMENTTESTS_SOURCE SHMSegmentTests.cpp)
set(SHMSEGMENTTESTS_SOURCE SHMSegmentTests.cpp
${PROJECT_SOURCE_DIR}/src/cpp/rtps/DataSharing/DataSharingPayloadPool.cpp
)

if(WIN32)
add_definitions(-D_WIN32_WINNT=0x0601)
Expand All @@ -25,6 +27,7 @@ target_compile_definitions(SHMSegmentTests PRIVATE FASTRTPS_NO_LIB
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
$<$<BOOL:${WIN32}>:_ENABLE_ATOMIC_ALIGNMENT_FIX>
$<$<BOOL:${MSVC}>:NOMINMAX> # avoid conflict with std::min & std::max in visual studio
)
target_include_directories(SHMSegmentTests PRIVATE
${Asio_INCLUDE_DIR}
Expand Down

0 comments on commit 2fba8e4

Please sign in to comment.