File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
15
#=============================================================================
16
- cmake_minimum_required (VERSION 2.8.5 )
16
+ cmake_minimum_required (VERSION 3.3 )
17
17
project (CastXML)
18
18
19
19
include (src/Version .cmake)
Original file line number Diff line number Diff line change @@ -66,7 +66,12 @@ if(LLVM_LINK_LLVM_DYLIB)
66
66
set (USE_SHARED USE_SHARED)
67
67
endif ()
68
68
llvm_config(castxml ${USE_SHARED} ${llvm_libs} )
69
- target_link_libraries (castxml PRIVATE ${clang_libs} )
69
+ if (LLVM_VERSION_MAJOR GREATER 5)
70
+ set (maybe_PRIVATE "PRIVATE" )
71
+ else ()
72
+ set (maybe_PRIVATE "" )
73
+ endif ()
74
+ target_link_libraries (castxml ${maybe_PRIVATE} ${clang_libs} )
70
75
71
76
set_property (SOURCE Utils.cxx APPEND PROPERTY COMPILE_DEFINITIONS
72
77
"CASTXML_INSTALL_DATA_DIR=\" ${CastXML_INSTALL_DATA_DIR} \" " )
Original file line number Diff line number Diff line change 13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
15
#=============================================================================
16
- cmake_minimum_required (VERSION 2.8.5 )
16
+ cmake_minimum_required (VERSION 3.3 )
17
17
18
18
if (xml)
19
19
file (REMOVE "${xml} " )
You can’t perform that action at this time.
0 commit comments