Fix meta example when ´-DENABLE_TESTING=OFF` #3553

Open
karlnapf opened this Issue Nov 18, 2016 · 2 comments

Projects

None yet

2 participants

@karlnapf
Member
karlnapf commented Nov 18, 2016 edited

Since the WrappedObjectArray class is guarded and only available when testing is turned on, the meta examples which explicitly import that class will not compile (java, cpp).

Solution:
If variable storing is turned off in meta example generator.py (storeVars or so), then the includes for WrappedObjectArray also have to be omitted.

Nice non trivial entrance task and crucial for any further release

@karlnapf karlnapf added this to the Shogun 5.1 milestone Nov 18, 2016
@karlnapf
Member

For now, the workaround is to compile Shogun with the cmake siwtch -DENABLE_TESTING

@IOcodegeass
Contributor

Yes this workaround worked for cpp interface.
Just by compiling using cmake switch -DJavaModular=ON -DENABLE_TESTING=ON ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment