Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rolf Eike Beer
KWSys
Commits
d4e8e7d2
Commit
d4e8e7d2
authored
21 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Changed configuration of header directory to specify it without the namespace.
parent
5c050762
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+9
-6
9 additions, 6 deletions
CMakeLists.txt
with
9 additions
and
6 deletions
CMakeLists.txt
+
9
−
6
View file @
d4e8e7d2
...
...
@@ -29,11 +29,13 @@
#
# Optional settings are as follows:
#
# KWSYS_HEADER_DIR = The directory into which to generate the kwsys headers.
# KWSYS_HEADER_ROOT = The directory into which to generate the kwsys headers.
# A directory called "${KWSYS_NAMESPACE}" will be
# created under this root directory to hold the files.
#
# Example:
#
# SET(KWSYS_HEADER_
DIR
${CMAKE_CURRENT_BINARY_DIR}
/${KWSYS_NAMESPACE}
)
# SET(KWSYS_HEADER_
ROOT
${CMAKE_CURRENT_BINARY_DIR})
# INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
#
# KWSYS_LIBRARY_INSTALL_DIR = The installation target directories into
...
...
@@ -141,9 +143,10 @@ SET(KWSYS_NO_ANSI_STRING_STREAM ${CMAKE_NO_ANSI_STRING_STREAM})
#-----------------------------------------------------------------------------
# Choose a directory for the generated headers.
IF
(
NOT KWSYS_HEADER_DIR
)
SET
(
KWSYS_HEADER_DIR
"
${
PROJECT_BINARY_DIR
}
/
${
KWSYS_NAMESPACE
}
"
)
ENDIF
(
NOT KWSYS_HEADER_DIR
)
IF
(
NOT KWSYS_HEADER_ROOT
)
SET
(
KWSYS_HEADER_ROOT
"
${
PROJECT_BINARY_DIR
}
"
)
ENDIF
(
NOT KWSYS_HEADER_ROOT
)
SET
(
KWSYS_HEADER_DIR
"
${
KWSYS_HEADER_ROOT
}
/
${
KWSYS_NAMESPACE
}
"
)
#-----------------------------------------------------------------------------
# Create STL header wrappers to block warnings in the STL headers and
...
...
@@ -334,7 +337,7 @@ ENDIF(KWSYS_USE_Process)
#-----------------------------------------------------------------------------
# Setup testing if not being built as part of another project.
IF
(
KWSYS_STANDALONE
)
INCLUDE_DIRECTORIES
(
${
KWSYS_HEADER_
DIR
}
/..
)
INCLUDE_DIRECTORIES
(
${
KWSYS_HEADER_
ROOT
}
)
ADD_EXECUTABLE
(
testProcess testProcess.c
)
ADD_EXECUTABLE
(
test1 test1.cxx
)
TARGET_LINK_LIBRARIES
(
testProcess
${
KWSYS_NAMESPACE
}
)
...
...
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