add_definitions(-DSALOME_USE_64BIT_IDS) for smesh via config

This commit is contained in:
looooo
2022-09-15 12:25:10 +02:00
committed by Uwe
parent 23d8e7a9a4
commit c35bf58a43

View File

@@ -119,6 +119,10 @@ macro(SetupSalomeSMESH)
else(NOT FREECAD_USE_EXTERNAL_SMESH)
find_package(SMESH CONFIG)
# If this definition is not set, linker errors will occur against SMESH on 64 bit machines.
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(-DSALOME_USE_64BIT_IDS)
endif(CMAKE_SIZEOF_VOID_P EQUAL 8)
if(NOT SMESH_FOUND)
find_package(SMESH REQUIRED)
if(NOT SMESH_FOUND)