mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-29 15:34:08 +02:00
Fixed C++03 and C++11 conditional tests building problem on cmake.
This commit is contained in:
parent
4d6e9d6c05
commit
2c2df64427
@ -7,7 +7,7 @@ INCLUDE_DIRECTORIES (
|
||||
${ZLIB_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
SET (check_PROGRAMS
|
||||
LIST (APPEND check_PROGRAMS
|
||||
zone.cpp
|
||||
pack_unpack.cpp
|
||||
pack_unpack_c.cpp
|
||||
@ -24,10 +24,15 @@ SET (check_PROGRAMS
|
||||
msgpack_tuple.cpp
|
||||
msgpack_test.cpp
|
||||
msgpackc_test.cpp
|
||||
msgpack_test_cpp11.cpp
|
||||
reference.cpp
|
||||
)
|
||||
|
||||
IF (MSGPACK_CXX11)
|
||||
LIST (APPEND check_PROGRAMS
|
||||
msgpack_test_cpp11.cpp
|
||||
)
|
||||
ENDIF ()
|
||||
|
||||
FOREACH (source_file ${check_PROGRAMS})
|
||||
GET_FILENAME_COMPONENT (source_file_we ${source_file} NAME_WE)
|
||||
ADD_EXECUTABLE (
|
||||
|
Loading…
x
Reference in New Issue
Block a user