Reopening. The problem is in fact not linked to flow engine. I think I spotted the problem in CMakeLists.txt, where yade library is never defined unless chunkSize=0 (code below). I really wonder why it works on different platforms, since nobody is typing -DCHUNKSIZE=0, I guess.
cmake ../trunk -DCHUNKSIZE=1
CMake Error at CMakeLists.txt:359 (TARGET_LINK_LIBRARIES):
Cannot specify link libraries for target "yade" which is not built by this
project.
cmake ../trunk -DCHUNKSIZE=0
--> ok
I 'm about to fix that Anton, but since you made this combination of core/lib/plugins, you maybe have suggestions?
Reopening. The problem is in fact not linked to flow engine. I think I spotted the problem in CMakeLists.txt, where yade library is never defined unless chunkSize=0 (code below). I really wonder why it works on different platforms, since nobody is typing -DCHUNKSIZE=0, I guess.
cmake ../trunk -DCHUNKSIZE=1 LINK_LIBRARIES) :
CMake Error at CMakeLists.txt:359 (TARGET_
Cannot specify link libraries for target "yade" which is not built by this
project.
cmake ../trunk -DCHUNKSIZE=0
--> ok
I 'm about to fix that Anton, but since you made this combination of core/lib/plugins, you maybe have suggestions?
Bruno
==============
IF (CHUNKSIZE) CombineSources)
INCLUDE(
COMBINE_ SOURCES( ${CMAKE_ BINARY_ DIR}/core "${SRC_CORE}" ${CHUNKSIZE}) BINARY_ DIR}/core. *.cpp") COMBINED} )
FILE(GLOB SRC_CORE_COMBINED "${CMAKE_
ADD_LIBRARY(core SHARED ${SRC_CORE_
COMBINE_ SOURCES( ${CMAKE_ BINARY_ DIR}/pkg "${SRC_PKG}" ${CHUNKSIZE}) BINARY_ DIR}/pkg. *.cpp") plugins SHARED ${SRC_PKG_ COMBINED} )
FILE(GLOB SRC_PKG_COMBINED "${CMAKE_
ADD_LIBRARY(
COMBINE_ SOURCES( ${CMAKE_ BINARY_ DIR}/lib "${SRC_LIB}" ${CHUNKSIZE}) BINARY_ DIR}/lib. *.cpp") support SHARED ${SRC_LIB_ COMBINED} )
FILE(GLOB SRC_LIB_COMBINED "${CMAKE_
ADD_LIBRARY(
ELSE (CHUNKSIZE)
ADD_LIBRARY(yade SHARED ${SRC_CORE} ${SRC_PKG} ${SRC_LIB})
ENDIF (CHUNKSIZE)