Page 1 of 1

CMake warning

PostPosted: 30 Aug 2014, 01:03
by dimproject
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)

Re: CMake issues

PostPosted: 30 Aug 2014, 01:48
by scrawl
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).

Re: CMake warning

PostPosted: 30 Aug 2014, 23:15
by dimproject
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".

Re: CMake warning

PostPosted: 31 Aug 2014, 07:15
by CryHam
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).