Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
00f23da8
Commit
00f23da8
authored
Jun 25, 2012
by
Lynn Garren
Browse files
try to cope with special characters in path
parent
511a6748
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake/Modules/ClhepCopyHeaders.cmake
View file @
00f23da8
...
...
@@ -31,10 +31,12 @@ macro (clhep_copy_headers )
endforeach
(
defhdr
)
foreach
(
hdr
${
headers
}
)
STRING
(
REGEX REPLACE
"^(
${
CMAKE_CURRENT_SOURCE_DIR
}
)/
${
package
}
(.*)$"
"
${
CLHEP_BINARY_DIR
}
/CLHEP
\\
2"
output_file
"
${
hdr
}
"
)
##message(STATUS "moving ${hdr} to ${output_file}")
#STRING( REPLACE ${CMAKE_CURRENT_SOURCE_DIR}/${package} ${CLHEP_BINARY_DIR}/CLHEP output_file ${hdr})
set
(
output_dir
${
CLHEP_BINARY_DIR
}
/CLHEP/
${
package
}
)
get_filename_component
(
shorthdr
${
hdr
}
NAME
)
##message(STATUS "moving ${shorthdr} to ${output_dir}")
# this copies the file and creates directories if necessary
CONFIGURE_FILE
(
${
hdr
}
${
output_
file
}
COPYONLY
)
CONFIGURE_FILE
(
${
hdr
}
${
output_
dir
}
/
${
shorthdr
}
COPYONLY
)
endforeach
(
hdr
)
endforeach
(
package
)
# get ClhepVersion.h
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment