Problem with CALL_ONPROPERTYCHANGED_METHOD #define

3 views
Skip to first unread message

Joel Vedrenne (Ensam)

unread,
Jul 18, 2012, 3:01:22 AM7/18/12
to dtenti...@googlegroups.com
Hi all,

Maybe, I detected a problem with this define.

CALL_ONPROPERTYCHANGED_METHOD is setted to 1 or 0 by the CMake entry Ungrouped Entrie/CALL_ONPROPERTYCHANGED_METHOD
And the result could be see directly into the [TRUNK]/build_dir/include/dtEntity/dtEntity_config.h

This define goes from 1 to 0 etc... Works fine !

Into [TRUNK]/include/dtEntity/propertycontainer.h, there is a #if prepross that uses CALL_ONPROPERTYCHANGED_METHOD but the #if seems not working.
The private seems always to be set.

Of course there is a #include <dtEntity/dtentity_config.h> but if I try to open dtEntity/dtentity_config.h, this is not [TRUNK]/build_dir/include/dtEntity/dtEntity_config.h that is pointed but [TRUNK]/include/dtEntity/dtEntity_config.h.
Into it, there is no #define CALL_ONPROPERTYCHANGED_METHOD 1 (or 0).

Another curiosity. Compare the content of these 2 files:

* [TRUNK]/build_dir/include/dtEntity/dtEntity_config.h :
#pragma once

// auto-generated by CMake, do not edit!
#define BUILD_CAL3D 0
#define BUILD_OPENAL 1
#define CEGUI_FOUND 0
#define USE_BOOST_POOL 0
#define DTENTITY_LIBRARY_STATIC 0
#define BUILD_LIBROCKET 1
#define DTENTITY_USE_STRINGS_AS_STRINGIDS 0
#define PROTOBUF_FOUND 1
#define ENET_FOUND 1
#define CALL_ONPROPERTYCHANGED_METHOD 1

----------------------
* [TRUNK]/include/dtEntity/dtEntity_config.h : 
#pragma once

// auto-generated by CMake, do not edit!

#define BUILD_CAL3D OFF
#define BUILD_OPENAL ON
#define BUILD_CEGUI OFF
#define USE_BOOST_POOL OFF
#define DTENTITY_LIBRARY_STATIC OFF
#define BUILD_LIBROCKET ON
-----------------

You see same #define but one file is functionning with ON/OFF techno and the other with 0/1...

Strange, no ???

Thanks for your help.
Joël.

Martin Scheffler

unread,
Jul 18, 2012, 3:09:52 AM7/18/12
to dtenti...@googlegroups.com
Hi Joel,
the file [TRUNK]/include/dtEntity/dtEntity_config.h should not exist.
Maybe you copied it there?
Please delete the file and try again.
Cheers,
Martin

2012/7/18 Joel Vedrenne (Ensam) <Joel.V...@ensam.eu>:

Joel Vedrenne (Ensam)

unread,
Jul 18, 2012, 3:17:55 AM7/18/12
to dtenti...@googlegroups.com
Yep, 

I don't really know what that file doing there !!!! 
I deleted it.

Thx Martin.
Joël.
Reply all
Reply to author
Forward
0 new messages