CMake warning

CMake warning

Postby dimproject » 30 Aug 2014, 01:03

I have CMake, version 3.0.1.
CMAKE_BUILD_TYPE is not defined.

{l Code}: {l Select All Code}
The CXX compiler identification is MSVC 16.0.40219.1
The C compiler identification is MSVC 16.0.40219.1
Check for working CXX compiler using: Visual Studio 10 2010
Check for working CXX compiler using: Visual Studio 10 2010 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working C compiler using: Visual Studio 10 2010
Check for working C compiler using: Visual Studio 10 2010 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
WARNING: CMAKE_BUILD_TYPE is not defined!
         Defaulting to CMAKE_BUILD_TYPE=RelWithDebInfo. Use ccmake to set a proper value.
VS detected, adding /MP flag (multiprocessor compile)
dimproject
 
Posts: 212
Joined: 18 Jul 2013, 13:51

Re: CMake issues

Postby scrawl » 30 Aug 2014, 01:48

There is no issue here. All the message is telling you is that you haven't manually set a CMAKE_BUILD_TYPE, so it's using the default (RelWithDebInfo, a release build including limited debug info).
scrawl
 
Posts: 11
Joined: 12 Jan 2010, 21:20

Re: CMake warning

Postby dimproject » 30 Aug 2014, 23:15

Why CMake is asking for ENet (already in source)?

{l Code}: {l Select All Code}
VS detected, adding /MP flag (multiprocessor compile)
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
Looking for OGRE_Paging...
Found OGRE_Paging: C:/stuntrally/dependencies/OgreSDK_vc10_v1-9-0/lib/release/OgrePaging.lib
Looking for OGRE_Terrain...
Found OGRE_Terrain: C:/stuntrally/dependencies/OgreSDK_vc10_v1-9-0/lib/release/OgreTerrain.lib
Looking for OGRE_Property...
Could not locate OGRE_Property
Looking for OGRE_RTShaderSystem...
Found OGRE_RTShaderSystem: C:/stuntrally/dependencies/OgreSDK_vc10_v1-9-0/lib/release/OgreRTShaderSystem.lib
Looking for OGRE_Volume...
Could not locate OGRE_Volume
Looking for OGRE_Overlay...
Found OGRE_Overlay: C:/stuntrally/dependencies/OgreSDK_vc10_v1-9-0/lib/release/OgreOverlay.lib
Looking for MyGUI
CMake Error at cmake/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
  Could NOT find ENet (missing: ENet_LIBRARY ENet_INCLUDE_DIRS)
Call Stack (most recent call first):
  cmake/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindENet.cmake:37 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:134 (find_package)


Configuring incomplete, errors occurred!
See also "C:/stuntrally/build/CMakeFiles/CMakeOutput.log".
See also "C:/stuntrally/build/CMakeFiles/CMakeError.log".
dimproject
 
Posts: 212
Joined: 18 Jul 2013, 13:51

Re: CMake warning

Postby CryHam » 31 Aug 2014, 07:15

I didn't edit CMake (I'm not using it).
It uses Enet from repos. Which is the best solution for any GNU/Linux.
While the VC project uses the included sources (so its easier to build on Windows).
User avatar
CryHam
SR Moderator
 
Posts: 1047
Joined: 25 Nov 2012, 08:40

Who is online

Users browsing this forum: No registered users and 1 guest

cron