Specify wrap_objects.cpp in CMake code
authorCharles Giessen <charles@lunarg.com>
Thu, 17 Feb 2022 04:57:01 +0000 (21:57 -0700)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 9 Mar 2022 22:06:30 +0000 (15:06 -0700)
While CMake will append appropriate file extensions when the full name isn't
given, such as "wrap_objects", it is best to specify the file with its
extension for explicitness.

tests/framework/layer/CMakeLists.txt

index 15cd889638e23b98aa1ea0d507bea241b2497344..b70d61e919d9030d87471243942893ca7a6aaa62 100644 (file)
@@ -65,18 +65,18 @@ set(WRAP_LAYER_VERSION_3_EXPORTS
         TEST_LAYER_EXPORT_PRESENT_IMAGE=1
     )
 
-add_library(test_layer_wrap_objects SHARED wrap_objects)
+add_library(test_layer_wrap_objects SHARED wrap_objects.cpp)
 target_link_libraries(test_layer_wrap_objects PRIVATE test_layer_deps)
 
-add_library(test_layer_wrap_objects_1 SHARED wrap_objects)
+add_library(test_layer_wrap_objects_1 SHARED wrap_objects.cpp)
 target_link_libraries(test_layer_wrap_objects_1 PRIVATE test_layer_deps)
 target_compile_definitions(test_layer_wrap_objects_1 PRIVATE ${WRAP_LAYER_VERSION_1_EXPORTS})
 
-add_library(test_layer_wrap_objects_2 SHARED wrap_objects)
+add_library(test_layer_wrap_objects_2 SHARED wrap_objects.cpp)
 target_link_libraries(test_layer_wrap_objects_2 PRIVATE test_layer_deps)
 target_compile_definitions(test_layer_wrap_objects_2 PRIVATE ${WRAP_LAYER_VERSION_2_EXPORTS})
 
-add_library(test_layer_wrap_objects_3 SHARED wrap_objects)
+add_library(test_layer_wrap_objects_3 SHARED wrap_objects.cpp)
 target_link_libraries(test_layer_wrap_objects_3 PRIVATE test_layer_deps)
 target_compile_definitions(test_layer_wrap_objects_3 PRIVATE ${WRAP_LAYER_VERSION_3_EXPORTS})