testsuite: fix unittest cross-language flags
Unit tests may include C++ code, so ensure the compiler flags are consistent to avoid link errors. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
c2b567f79e
commit
9024669a67
2 changed files with 2 additions and 4 deletions
|
@ -45,8 +45,10 @@ else()
|
|||
|
||||
if(M64_MODE)
|
||||
set (CMAKE_C_FLAGS "-m64")
|
||||
set (CMAKE_CXX_FLAGS "-m64")
|
||||
else()
|
||||
set (CMAKE_C_FLAGS "-m32") #deprecated on macOS
|
||||
set (CMAKE_CXX_FLAGS "-m32") #deprecated on macOS
|
||||
endif(M64_MODE)
|
||||
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue