annotate test/dynload_plain/CMakeLists.txt @ 272:a94a9a83dae6

- dynload_plain test handling symbol aliases, now - removed some hardcoded libc.so paths in dynload_plain, and pushed deduction logic to build instead
author Tassilo Philipp
date Fri, 29 Dec 2017 21:19:07 +0100
parents 0592eb360af2
children 5c8eb8f34ae6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
214
Tassilo Philipp
parents:
diff changeset
1 add_executable(dynload_plain dynload_plain.c)
Tassilo Philipp
parents:
diff changeset
2 target_link_libraries(dynload_plain dynload_s ${CMAKE_DL_LIBS})
272
a94a9a83dae6 - dynload_plain test handling symbol aliases, now
Tassilo Philipp
parents: 214
diff changeset
3 exec_program("ls /lib*/libc.so* | sort -V -r | head -1" OUTPUT_VARIABLE DEF_C_DYLIB)
a94a9a83dae6 - dynload_plain test handling symbol aliases, now
Tassilo Philipp
parents: 214
diff changeset
4 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDEF_C_DYLIB=\\\"${DEF_C_DYLIB}\\\"")
214
Tassilo Philipp
parents:
diff changeset
5