Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 12, 2009, 5:39:07 PM (15 years ago)
Author:
rgrieder
Message:

Visual studio debugger working again (had to move the project modifier file).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/CMakeLists.txt

    r5738 r5744  
    7474  SOURCE_FILES ${ORXONOX_SRC_FILES}
    7575)
    76 
    77 
    78 # When using Visual Studio we want to use the output directory as working
    79 # directory and we also want to specify where the external dlls
    80 # (lua, ogre, etc.) are. The problem hereby is that these information cannot
    81 # be specified in CMake because they are not stored in the actual project file.
    82 # This workaround will create a configured *.vcproj.user file that holds the
    83 # right values. When starting the solution for the first time,
    84 # these get written to the *vcproj.yourPCname.yourname.user
    85 IF(MSVC)
    86   IF(CMAKE_CL_64)
    87     SET(MSVC_PLATFORM "x64")
    88   ELSE()
    89     SET(MSVC_PLATFORM "Win32")
    90   ENDIF()
    91   STRING(REGEX REPLACE "^Visual Studio ([0-9][0-9]?) .*$" "\\1"
    92          VISUAL_STUDIO_VERSION_SIMPLE "${CMAKE_GENERATOR}")
    93   CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox-main.vcproj.user.in" "${CMAKE_CURRENT_BINARY_DIR}/orxonox-main.vcproj.user")
    94 ENDIF(MSVC)
Note: See TracChangeset for help on using the changeset viewer.