Building using CMake - Windows: Difference between revisions

Jump to navigation Jump to search
→‎Building: Add entry CMAKE_INSTALL_PREFIX
(→‎Building: Add entry CMAKE_INSTALL_PREFIX)
Line 51: Line 51:
### First check the <tt>MSVC_3RDPARTY_ROOT</tt> variable. If it is not set, chances are that there will be a lot of <tt>-NOTFOUND</tt> errors. Instead of trying to fix every error individually, set that variable to the location of the directory structure that is presented above. Then press the <tt>"Configure"</tt> button again.
### First check the <tt>MSVC_3RDPARTY_ROOT</tt> variable. If it is not set, chances are that there will be a lot of <tt>-NOTFOUND</tt> errors. Instead of trying to fix every error individually, set that variable to the location of the directory structure that is presented above. Then press the <tt>"Configure"</tt> button again.
### Also check the lines with a checkbox. These are build options and may impact the feature set of the built program.
### Also check the lines with a checkbox. These are build options and may impact the feature set of the built program.
### Change the <tt>CMAKE_INSTALL_PREFIX</tt> to <tt>${MSVC_3RDPARTY_ROOT}/install/msvc100/SimGear</tt> because <tt>C:/Program Files</tt> is likely unwritable to ordinary Windows users and will integrate better with the above directory structure (this is mandatory for SimGear if you don't want to solve errors by hand).
### Click [[File:CMake GUI Add entry.png]] to create a new entry with:
###* '''Name:''' <tt>CMAKE_INSTALL_PREFIX</tt>
###* '''Type:''' PATH
###* '''Value:''' <tt>${MSVC_3RDPARTY_ROOT}/install/msvc100/SimGear</tt>
## Repeat the process from step 5, until the <tt>"Generate"</tt> button is enabled.
## Repeat the process from step 5, until the <tt>"Generate"</tt> button is enabled.
## Press the <tt>"Generate"</tt> button.
## Press the <tt>"Generate"</tt> button.

Navigation menu