mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 20:00:38 -06:00
Merge topic 'fileapi-test-fix'
e1fe5bb475 Tests: Fix FileAPI interface_exe test
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8765
This commit is contained in:
@@ -73,6 +73,47 @@
|
||||
{
|
||||
"define": "interface_exe_EXPORTS",
|
||||
"backtrace": null
|
||||
},
|
||||
{
|
||||
"define": "COMPILED_WITH_INTERFACE_LIB",
|
||||
"backtrace": [
|
||||
{
|
||||
"file": "^include_test\\.cmake$",
|
||||
"line": 4,
|
||||
"command": "target_link_libraries",
|
||||
"hasParent": true
|
||||
},
|
||||
{
|
||||
"file": "^include_test\\.cmake$",
|
||||
"line": null,
|
||||
"command": null,
|
||||
"hasParent": true
|
||||
},
|
||||
{
|
||||
"file": "^codemodel-v2\\.cmake$",
|
||||
"line": 3,
|
||||
"command": "include",
|
||||
"hasParent": true
|
||||
},
|
||||
{
|
||||
"file": "^codemodel-v2\\.cmake$",
|
||||
"line": null,
|
||||
"command": null,
|
||||
"hasParent": true
|
||||
},
|
||||
{
|
||||
"file": "^CMakeLists\\.txt$",
|
||||
"line": 3,
|
||||
"command": "include",
|
||||
"hasParent": true
|
||||
},
|
||||
{
|
||||
"file": "^CMakeLists\\.txt$",
|
||||
"line": null,
|
||||
"command": null,
|
||||
"hasParent": false
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"compileCommandFragments": null
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
add_library(interface_lib INTERFACE)
|
||||
target_compile_definitions(interface_lib INTERFACE COMPILED_WITH_INTERFACE_LIB)
|
||||
add_executable(interface_exe empty.c)
|
||||
target_link_libraries(interface_exe PRIVATE inteface_lib)
|
||||
target_link_libraries(interface_exe PRIVATE interface_lib)
|
||||
set_property(TARGET interface_exe PROPERTY ENABLE_EXPORTS ON)
|
||||
set_property(TARGET interface_exe PROPERTY RUNTIME_OUTPUT_DIRECTORY bin)
|
||||
set_property(TARGET interface_exe PROPERTY ARCHIVE_OUTPUT_DIRECTORY lib)
|
||||
|
||||
Reference in New Issue
Block a user