![]() It should be defined as specified but with straight slashes. Run CMake with -DINSTALL_DIR:STRING=D:\occt and with -DCMAKE_INSTALL_PREFIX:STRING=D:\occt and check the INSTALL_DIR value in cache. ![]() This should be fixed - it seems that TO_CMAKE_PATH function should be used when processing this variable.Īlso, as soon as Bug 1 is fixed, it will be necessary to check if Bug 2 is not reproduced with CMAKE_INSTALL_PREFIX (note: with standard way, without any customization, CMAKE_INSTALL_PREFIX is correctly processed by CMake). ![]() I would recommend doing it this way if youre really writing a Windows application. Thats what the WIN32 flag to addexecutable means: it means youre going to make it a Windows program, and provide a WinMain function. On Windows, if INSTALL_DIR is specified in native Windows style - with back slashes, the configuration fails. If you use: addexecutable (simple WIN32 simple.c) then you must provide a WinMain function. Set (CMAKE_INSTALL_PREFIX "C:/opencascade-$")īug 2. It works by defining a CMakeLists.txt file in the root directory of your application. Instead, CMake is a tool to generate Makefiles, at least on Linux. # set default install directory for Windows As with NMAKE, CMake is not a direct way to run your Makefiles on Windows. Open the Command Palette (P (Windows, Linux Ctrl+Shift+P)) and run the CMake: Quick Start command: Enter a project name. On Linux, this variable defaults to "/usr/local", while on Windows, it defaults to "C:/Program Files" ( ).Īll dependent installation directories (for includes, libs, executables, resources, docs, adm files etc) are inherited from CMAKE_INSTALL_PREFIX.īut 1: On Windows, OCCT hardcodes CMAKE_INSTALL_PREFIX to : The CMake Tools extension can create the files for a basic CMake project for you. With CMake, the standard way to specify installation directory is to use CMAKE_INSTALL_PREFIX variable:Ĭmake -DCMAKE_INSTALL_PREFIX=/path/to/the/install/dir. 0027355: Configuration, CMake: install path on Windows is incorrectly processed
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |