Skip to content

Commit

Permalink
set 32bit flags for all dependencies too
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyrAhmady committed Oct 15, 2024
1 parent 196c796 commit da49ce7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ include_directories(${EIGEN3_INCLUDE_DIR})
set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY True)
set(CMAKE_SKIP_PACKAGE_ALL_DEPENDENCY True)

include(CheckTypeSize)
check_type_size("void*" SIZEOF_VOID_P BUILTIN_TYPES_ONLY)

if(NOT WIN32)
if(NOT TARGET_ARCH OR TARGET_ARCH EQUAL x86)
set(CMAKE_C_FLAGS "-m32 ${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "-m32 ${CMAKE_CXX_FLAGS}")
endif()
endif()

add_subdirectory(lib/omp-sdk)
add_subdirectory(lib/omp-gdk)
include_directories(${OMP_GDK_PATH})
Expand Down

0 comments on commit da49ce7

Please sign in to comment.