Skip to content

cmake enhancement #8419

@sonoro1234

Description

@sonoro1234

Hello,

I was very pleased to found a CMakelists.txt in example glfw_vulkan. (May be could be added to others also)

The line

set(GLFW_DIR ../../../glfw) # Set this to point to an up-to-date GLFW repo

has to be edited by user but it is really not nedded: It can be changed to:

if(NOT GLFW_DIR)
   message(FATAL_ERROR "set the option GLFW_DIR to the source directory of GLFW")
endif()

And so the user can configure and buil from the command line with

cmake -Ggenerator -DGLFW_DIR=path_to_glfw_source path_to_glfw_vulkan_example
make install

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions