SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -DWNT)
SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -DPPRO_NT) # For medfile
SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_USE_MATH_DEFINES) # At least for MEDMEM
- SET(PLATFORM_LIBADD Ws2_32.lib)
- SET(PLATFORM_LIBADD Userenv.lib) # At least for GEOM suit
+ SET(PLATFORM_LIBADD ${PLATFORM_LIBADD} Ws2_32.lib)
+ SET(PLATFORM_LIBADD ${PLATFORM_LIBADD} Userenv.lib) # At least for GEOM suit
ELSE(WINDOWS)
- SET(PLATFORM_LIBADD -ldl)
+ SET(PLATFORM_LIBADD ${PLATFORM_LIBADD} -ldl)
ENDIF(WINDOWS)
# SET(PLATFORM_CPPFLAGS)
# --
newlines.append(r'''
SET(libs ${PLATFORM_LIBADD} ${PLATFORM_LDFLAGS} ${${amname}_LIBADD} ${${amname}_LDADD} ${${amname}_LDFLAGS})
+ IF(name STREQUAL SALOMEBasics)
+ SET(libs ${libs} ${PTHREAD_LIBS})
+ ENDIF(name STREQUAL SALOMEBasics)
''')
if key == "bin_PROGRAMS":
newlines.append(r'''
ENDFOREACH(v ${vars})
SET(libadd ${libadd} ${lib})
ENDFOREACH(lib ${libs})
- IF(name STREQUAL SALOMEBasics)
- TARGET_LINK_LIBRARIES(${name} ${PTHREAD_LIBS} ${libadd})
- ELSE(name STREQUAL SALOMEBasics)
TARGET_LINK_LIBRARIES(${name} ${libadd})
- ENDIF(name STREQUAL SALOMEBasics)
''')
# --
return
SET(vars)
IF(WINDOWS)
SET(vars ${vars} -include SALOMEconfig.h)
+ SET(vars ${vars} -ftemplate-depth-32)
ENDIF(WINDOWS)
SET(flags)
FOREACH(f ${var})