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
56d04963
Commit
56d04963
authored
8 years ago
by
Nat Goodspeed
Browse files
Options
Downloads
Patches
Plain Diff
DRTVWR-418: Fix CMake syntax for Havok.cmake refactoring.
parent
2428b484
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/cmake/Havok.cmake
+12
-13
12 additions, 13 deletions
indra/cmake/Havok.cmake
with
12 additions
and
13 deletions
indra/cmake/Havok.cmake
+
12
−
13
View file @
56d04963
...
...
@@ -50,25 +50,24 @@ unset(HK_RELEASE_LIBRARIES)
unset
(
HK_RELWITHDEBINFO_LIBRARIES
)
if
(
DEBUG_PREBUILT
)
# DEBUG_EXEC() reports each execute_process() before invoking
function
(
DEBUG_EXEC
)
message
(
STATUS ARGN
)
execute_process
(
ARGN
)
endfunction
(
DEBUG_EXEC
)
# DEBUG_MESSAGE() displays debugging message
function
(
DEBUG_MESSAGE
)
message
(
STATUS ARGN
)
# prints message args separated by semicolons rather than spaces,
# but making it pretty is a lot more work
message
(
STATUS
"
${
ARGN
}
"
)
endfunction
(
DEBUG_MESSAGE
)
else
(
DEBUG_PREBUILT
)
# without DEBUG_PREBUILT, DEBUG_EXEC() is just execute_process()
function
(
DEBUG_EXEC
)
execute_process
(
ARGN
)
endfunction
(
DEBUG_EXEC
)
# without DEBUG_PREBUILT, DEBUG_MESSAGE() is a no-op
function
(
DEBUG_MESSAGE
)
endfunction
(
DEBUG_MESSAGE
)
endif
(
DEBUG_PREBUILT
)
# DEBUG_EXEC() reports each execute_process() before invoking
function
(
DEBUG_EXEC
)
DEBUG_MESSAGE
(
${
ARGN
}
)
execute_process
(
COMMAND
${
ARGN
}
)
endfunction
(
DEBUG_EXEC
)
# *TODO: Figure out why we need to extract like this...
foreach
(
HAVOK_LIB
${
HAVOK_LIBS
}
)
find_library
(
HAVOK_DEBUG_LIB_
${
HAVOK_LIB
}
${
HAVOK_LIB
}
PATHS
${
HAVOK_DEBUG_LIBRARY_PATH
}
)
...
...
@@ -89,10 +88,10 @@ foreach(HAVOK_LIB ${HAVOK_LIBS})
if
(
${
PREBUILD_TRACKING_DIR
}
/havok_source_installed IS_NEWER_THAN
${
PREBUILD_TRACKING_DIR
}
/havok_
${
HAVOK_LIB
}
_extracted OR NOT
${
havok_
${
HAVOK_LIB
}
_extracted
}
EQUAL 0
)
DEBUG_MESSAGE
(
"Extracting
${
HAVOK_LIB
}
..."
)
foreach
(
lib debug_dir
release_dir
relwithdebinfo_dir
)
DEBUG_EXEC
(
"mkdir"
lib
)
foreach
(
lib
${
debug_dir
}
${
release_dir
}
${
relwithdebinfo_dir
}
)
DEBUG_EXEC
(
"mkdir"
${
lib
}
)
DEBUG_EXEC
(
"ar"
"-xv"
"../lib
${
HAVOK_LIB
}
.a"
WORKING_DIRECTORY lib
)
WORKING_DIRECTORY
${
lib
}
)
endforeach
(
lib
)
# Just assume success for now.
...
...
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