MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013110 | CMake | CMake | public | 2012-04-07 13:27 | 2016-06-10 14:31 |
| Reporter | sradomski | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | Windows | OS | Windows | OS Version | 7 |
| Product Version | CMake 2.8.7 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0013110: add_jar does not allow wildcards for java files on win32 | ||||
| Description | On unix platforms (MacOSX, Linux), add_jar(TARGET_NAME SRC1 SRC2 .. SRCN) allows for SRC1 to be a wildcard (e.g. ${SOME_PATH}/*.java). While I am not sure that this is supported behaviour, it is *really* useful, when the set of java files is not known at configuration time. In my case, I am using SWIG to generate .java wrapper files from the source tree. On unices I can just have a line: ADD_JAR(targetname ${CMAKE_CURRENT_BINARY_DIR}/${UMUNDO_JAVA_DIR}/*.java) and CMake will do the right thing. On Win32 with Visual Studio 10, this fails with an error MSB6001: "Invalid command line switch for "cmd.exe". Illegal characters in path" and a plethora of warnings in "Microsoft.CppCommon.targets". Seeing that SWIG is supported in CMake, wildcards with add_jar on the win32 platform would be a really useful feature to complement this. | ||||
| Steps To Reproduce | ADD_JAR(targetname ${PROJECT_SOURCE_DIR}/*.java) vs. ADD_JAR(targetname ${PROJECT_SOURCE_DIR}/Test.java) with a minimal Test.java file in the project's source directory. | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-04-07 13:27 | sradomski | New Issue | |||
| 2012-08-11 21:35 | David Cole | Status | new => backlog | ||
| 2012-08-11 21:35 | David Cole | Note Added: 0030390 | |||
| 2016-06-10 14:28 | Kitware Robot | Note Added: 0042018 | |||
| 2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved | ||
| 2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||