CMake issue on windows v1.9

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Post Reply
aragonsr
Gnoblar
Posts: 1
Joined: Fri Apr 04, 2014 10:48 pm

CMake issue on windows v1.9

Post by aragonsr » Fri Apr 04, 2014 11:03 pm

I think there might be an issue with the cmake script and here is why I think so...

When I run cmake on windows it finds the Ogre include path. It does find the libs and other things like normal.

Code: Select all

OGRE_INCLUDE_DIR: C:/Users/tseiler/Desktop/dc_depot/3rdParty/OgreSDK_v1-9/include/OGRE;NOTFOUND
OGRE_INCLUDE_DIRS: C:/Users/tseiler/Desktop/dc_depot/3rdParty/OgreSDK_v1-9/include/OGRE;NOTFOUND;C:/Users/tseiler/Desktop/dc_depot/3rdParty/OgreSDK_v1-9/include
You'll notice that it appends "NOTFOUND" to the end.

When this happens, and the user clicks "Generate" on the cmake gui app, it results in several errors like such:

Code: Select all

CMake Error in Project/CMakeLists.txt:
  Found relative path while evaluating include directories of "ALL_BUILD":

    "NOTFOUND"
This causes serious issues because...

Code: Select all

include_directories (
    ${OGRE_INCLUDE_DIRS} 
    ${OIS_INCLUDE_DIRS}
)
This code should append OIS include paths (yes, the OIS vars are being set properly).
But it doesn't. In the visual studio solution, it results in the include list being:

Code: Select all

C:/Users/tseiler/Desktop/dc_depot/3rdParty/OgreSDK_v1-9/include/OGRE
Notice it can't include anything after the first "NOTFOUND"

I believe it may have something to do with the following vars because after I click "Configure", they are set to "NOTFOUND" in the gui, even though I've attempted to configure for visual studio 2013 on windows.

Code: Select all

OGRE_FRAMEWORK_INCLUDES
OGRE_FRAMEWORK_PATH
Coincidentally, in the findOgre.cmake file, these vars are being appended next in the list.

I grabbed and built the version of Ogre from:

Code: Select all

Revision: 6376
Changeset: 59986e405f2f2924c7a090f9c65b34ddf3e9d9f1 [59986e405f2f]
Parents: 6370, 6375
Author: Murat Sari <Wolfmanfx@gmail.com>
Date: Monday, March 31, 2014 2:39:42 PM
Branch: v1-9
Labels: tip
The cmake script comes from this commit.

What do you guys think?
0 x

Post Reply