Skip to content

Commit

Permalink
Force test target to be built in 32 bits
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrodbec committed Jan 13, 2025
1 parent 3133e4d commit f934b49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ elseif(${CMAKE_BUILD_TYPE} MATCHES HIL)
include(${CMAKE_SOURCE_DIR}/cmake/fetch_googletest.cmake)
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchain_hil_gcc.cmake)
elseif(${CMAKE_BUILD_TYPE} MATCHES Test)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
include(${CMAKE_SOURCE_DIR}/cmake/fetch_googletest.cmake)
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchain_linux_gcc.cmake)
elseif(${CMAKE_BUILD_TYPE} MATCHES Examples)
Expand Down Expand Up @@ -48,6 +50,7 @@ endif()
if(${CMAKE_BUILD_TYPE} MATCHES Test)
enable_language(C CXX)
enable_testing()

add_subdirectory(test)
endif()

Expand Down

0 comments on commit f934b49

Please sign in to comment.