View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0002859 | CMake | CMake | public | 2006-02-07 16:55 | 2016-06-06 16:35 | ||||
Reporter | John Biddiscombe | ||||||||
Assigned To | Brad King | ||||||||
Priority | low | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0002859: SET_SOURCE_FILE_PROPERTIES faulty with sub dirs | ||||||||
Description | I always seem to have trouble with constructs like this... SET(vtkCSCSNetCDF_SRCS vtkNetCDFReader.cxx netcdfcpp/ncvalues.cpp netcdfcpp/netcdf.cpp ) SET_SOURCE_FILES_PROPERTIES( netcdfcpp/ncvalues netcdfcpp/netcdf WRAP_EXCLUDE ) if the couple of src files I want included are in sub directories, it seems to be impossible to get the WRAP_+EXCLUDE and ABSTRACT flags to be tagged to them. With ot without full paths, with or without .cpp on the end of the filename, the WRAP_EXCLUDE just won't go on. What's the correct way to handle it tried netcdfcpp/ncvalues netcdfcpp/ncvalues.cpp {CMAKE_CURRENT_SOURCE_DIR}/netcdfcpp/ncvalues {CMAKE_CURRENT_SOURCE_DIR}/netcdfcpp/ncvalues.cpp ncvalues ncvalues.cpp but it just doesn't work. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Relationships |
Notes | |
(0003698) Bill Hoffman (manager) 2006-02-07 17:12 |
Here is an example that works: PROJECT(foo) SET(foosrc subprj/sublib.c) SET_SOURCE_FILES_PROPERTIES( foo.cxx ${CMAKE_CURRENT_SOURCE_DIR}/subprj/sublib.c WRAP_EXCLUDE ) GET_SOURCE_FILE_PROPERTY(FOO ${CMAKE_CURRENT_SOURCE_DIR}/subprj/sublib.c WRAP_EXCLUDE) MESSAGE("${FOO}") GET_SOURCE_FILE_PROPERTY(FOO foo.cxx WRAP_EXCLUDE) MESSAGE("${FOO}") ADD_EXECUTABLE(foobar ${foosrc} foo.cxx) This may be related to the bug where . is in the path. There is a problem with the GetOrCreateSource file function. |
(0005156) Bill Hoffman (manager) 2006-10-04 13:42 |
Is this fixed now? |
(0005230) John Biddiscombe (reporter) 2006-10-05 06:34 |
I think it is working. I haven't had amny problems for a while |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2010-12-11 10:03 | Kovarththanan Rajaratnam | Relationship added | related to 0010086 |
2016-06-06 16:35 | Brad King | Resolution | open => fixed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |