Skip to content

Add librt when necessary#149

Merged
TonyBarbour merged 1 commit into
masterfrom
tony-cmake-rt
Feb 27, 2019
Merged

Add librt when necessary#149
TonyBarbour merged 1 commit into
masterfrom
tony-cmake-rt

Conversation

@TonyBarbour
Copy link
Copy Markdown
Contributor

This attempts to be a little more conservative than #148 francoisbertelatschrodinger could you see if this fixes your problem?

Copy link
Copy Markdown
Contributor

@jeremyk-lunarg jeremyk-lunarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread cube/CMakeLists.txt Outdated
cube.vert.inc
cube.frag.inc)
target_link_libraries(vkcube Vulkan::Vulkan)
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this CMAKE_SYSTEM_NAME check actually required? By the outer if-else tree, it's already !APPLE and !WIN32.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, removed

Change-Id: Ie4b3fdec4d61a52e82880308bb567f2f22c6c273
@francoisbertelatschrodinger
Copy link
Copy Markdown

Yes this patch fixes my problem.

@TonyBarbour TonyBarbour merged commit 0bc0905 into master Feb 27, 2019
@TonyBarbour TonyBarbour deleted the tony-cmake-rt branch February 27, 2019 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants