Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
dda94a96
Commit
dda94a96
authored
Jul 10, 2003
by
Brad King
Browse files
ERR: Generated source files need access to kwsysPrivate.h. Just copy it to the build tree.
parent
45ea83a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/kwsys/CMakeLists.txt
View file @
dda94a96
...
...
@@ -96,6 +96,14 @@ IF(NOT EXECUTABLE_OUTPUT_PATH)
"Output directory for executables."
)
ENDIF
(
NOT EXECUTABLE_OUTPUT_PATH
)
# Generated source files will need this header.
STRING
(
COMPARE EQUAL
"
${
PROJECT_SOURCE_DIR
}
"
"
${
PROJECT_BINARY_DIR
}
"
KWSYS_IN_SOURCE_BUILD
)
IF
(
NOT KWSYS_IN_SOURCE_BUILD
)
CONFIGURE_FILE
(
${
PROJECT_SOURCE_DIR
}
/kwsysPrivate.h
${
PROJECT_BINARY_DIR
}
/kwsysPrivate.h COPY_ONLY IMMEDIATE
)
ENDIF
(
NOT KWSYS_IN_SOURCE_BUILD
)
#-----------------------------------------------------------------------------
# We require ANSI support from the C compiler. Add any needed flags.
IF
(
CMAKE_ANSI_CFLAGS
)
...
...
@@ -238,9 +246,10 @@ IF(KWSYS_USE_Process)
IF
(
NOT UNIX
)
# Use the Windows implementation. We need the encoded forwarding executable.
SET
(
KWSYS_SRCS
${
KWSYS_SRCS
}
ProcessWin32.c
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
KWSYS_NAMESPACE
}
ProcessFwd9xEnc.c
)
SET_SOURCE_FILES_PROPERTIES
(
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
KWSYS_NAMESPACE
}
ProcessFwd9xEnc.c
PROPERTIES GENERATED 1
)
${
PROJECT_BINARY_DIR
}
/
${
KWSYS_NAMESPACE
}
ProcessFwd9xEnc.c
)
SET_SOURCE_FILES_PROPERTIES
(
${
PROJECT_BINARY_DIR
}
/
${
KWSYS_NAMESPACE
}
ProcessFwd9xEnc.c
PROPERTIES GENERATED 1
)
ELSE
(
NOT UNIX
)
# Use the UNIX implementation.
SET
(
KWSYS_SRCS
${
KWSYS_SRCS
}
ProcessUNIX.c
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment