Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
7a71cea1
Commit
7a71cea1
authored
2 years ago
by
Nicky
Browse files
Options
Downloads
Patches
Plain Diff
Workaround to keep old cmake versions limping around.
parent
68c68059
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/CMakeLists.txt
+3
-0
3 additions, 0 deletions
indra/CMakeLists.txt
indra/cmake/Linking.cmake
+9
-1
9 additions, 1 deletion
indra/cmake/Linking.cmake
with
12 additions
and
1 deletion
indra/CMakeLists.txt
+
3
−
0
View file @
7a71cea1
...
...
@@ -7,6 +7,9 @@
## 3.13/12 is needed for add_link_options/add_compile_definitions
## 3.14 added FILE CREATE_LINK
## 3.16 is needed for target_precompile_headers
## Nicky: Ideally we want at least 3.21 for good preset support
## We're not there yet, but once done, there is a kludge in Linking.cmake
# "if(${CMAKE_VERSION} VERSION_LESS "3.20.0")" that can also be removed
cmake_minimum_required
(
VERSION 3.16.0 FATAL_ERROR
)
set
(
ROOT_PROJECT_NAME
"SecondLife"
CACHE STRING
...
...
This diff is collapsed.
Click to expand it.
indra/cmake/Linking.cmake
+
9
−
1
View file @
7a71cea1
...
...
@@ -8,7 +8,15 @@ set(ARCH_PREBUILT_DIRS_PLUGINS ${AUTOBUILD_INSTALL_DIR}/plugins)
set
(
ARCH_PREBUILT_DIRS_RELEASE
${
AUTOBUILD_INSTALL_DIR
}
/lib/release
)
set
(
ARCH_PREBUILT_DIRS_DEBUG
${
AUTOBUILD_INSTALL_DIR
}
/lib/debug
)
if
(
WINDOWS OR DARWIN
)
set
(
SHARED_LIB_STAGING_DIR
${
CMAKE_BINARY_DIR
}
/sharedlibs/$<IF:$<BOOL:
${
LL_GENERATOR_IS_MULTI_CONFIG
}
>,$<CONFIG>,>
)
# Kludge for older cmake versions, 3.20+ is needed to use a genex in add_custom_command( OUTPUT <var> ... )
# Using this will work okay-ish, as Debug is not supported anyway. But for property multi config and also
# ninja support the genex version is preferred.
if
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.20.0"
)
set
(
SHARED_LIB_STAGING_DIR
${
CMAKE_BINARY_DIR
}
/sharedlibs/Release
)
else
()
set
(
SHARED_LIB_STAGING_DIR
${
CMAKE_BINARY_DIR
}
/sharedlibs/$<IF:$<BOOL:
${
LL_GENERATOR_IS_MULTI_CONFIG
}
>,$<CONFIG>,>
)
endif
()
if
(
DARWIN
)
set
(
SHARED_LIB_STAGING_DIR
${
SHARED_LIB_STAGING_DIR
}
/Resources
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment