<div class="__aliyun_email_body_block"><div style="color:#333333;font-size:14px;font-family:Tahoma,Arial,STHeiti,SimSun;;"><br></div><div class="__aliyun_signature_wrap">I use cmake 2.8.11 on CentOS 7 x64.<br><br></div><div class="__aliyun_signature_wrap">My cmake files and the generated CodeBlocks project files are attached, and here is a code section of my CMakeLists.txt<br data-mce-bogus="1"></div><div style="padding-left: 30px;" class="__aliyun_signature_wrap">set(MAYA_COMPILE_DEFINITIONS <br>    REQUIRE_IOSTREAM _BOOL LINUX _LINUX LINUX_64)<br><br>set(MAYA_COMPILE_FLAGS<br>    "-m64 -g -pthread -pipe -fPIC -Wno-deprecated -fno-gnu-keywords" )<br><br>set(MAYA_LINK_FLAGS<br>    "-shared -m64 -g -pthread -pipe -fPIC -Wno-deprecated -fno-gnu-keywords -Wl,-Bsymbolic" )<br><br>SET_TARGET_PROPERTIES( ${MY_PROJECT_NAME}<br>    PROPERTIES <br>        COMPILE_DEFINITIONS        "${MAYA_COMPILE_DEFINITIONS}"<br>        COMPILE_FLAGS            "${MAYA_COMPILE_FLAGS}"<br>        LINK_FLAGS            "${MAYA_LINK_FLAGS}"<br>        PREFIX                ""<br>        SUFFIX                ${MAYA_EXTENSION}<br><br>        OUTPUT_NAME            ${MY_PROJECT_NAME}<br>        LIBRARY_OUTPUT_DIRECTORY    ${CMAKE_CURRENT_SOURCE_DIR}/../../plug-ins<br>)</div><div style="" class="__aliyun_signature_wrap"><br data-mce-bogus="1"></div><div style="" class="__aliyun_signature_wrap">When I open the generated CodeBlocks project file dynamic_enum.cbp, I can't find any definitions in Project's build options window. My screenshot is attached either.<br></div><div style="" class="__aliyun_signature_wrap">But, when I open dynamic_enum.cbp with gedit, I can find these definitions. here it is:<br data-mce-bogus="1"></div><div style="" class="__aliyun_signature_wrap">         <Compiler><br>            <Add option="-DREQUIRE_IOSTREAM" /><br>            <Add option="-D_BOOL" /><br>            <Add option="-DLINUX" /><br>            <Add option="-D_LINUX" /><br>            <Add option="-DLINUX_64" /></div><div style="" class="__aliyun_signature_wrap"><br data-mce-bogus="1"></div><div style="" class="__aliyun_signature_wrap">I don't know how to deal with it now. Is there any thing wrong in my CMakeLists.txt?<br data-mce-bogus="1"></div><div class="__aliyun_signature_wrap">Could you give me any help? Thank you in advance.<br data-mce-bogus="1"></div><div class="__aliyun_signature_wrap"><br data-mce-bogus="1"></div><div class="__aliyun_signature_wrap">Cheers<br data-mce-bogus="1"></div><div class="__aliyun_signature_wrap">yaoyansi<br data-mce-bogus="1"></div></div>