cmake enhancement #8419

Closed
opened 2025-02-21 06:09:57 +00:00 by sonoro1234 · 0 comments
sonoro1234 commented 2025-02-21 06:09:57 +00:00 (Migrated from github.com)

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
Hello, I was very pleased to found a CMakelists.txt in example glfw_vulkan. (May be could be added to others also) The line ```cmake 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: ```cmake 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 ```
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#8419
No description provided.