Browse Source

CMake: Manually set p3distributed's linker language

It doesn't contain any source files anymore (see last commit),
so for non-metalib builds, this is necessary for CMake to
understand how to invoke the linker/archiver.
Sam Edwards 6 years ago
parent
commit
1bd15dad60
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/distributed/CMakeLists.txt

+ 1 - 0
direct/src/distributed/CMakeLists.txt

@@ -18,6 +18,7 @@ set(P3DISTRIBUTED_SOURCES
 
 
 add_component_library(p3distributed NOINIT SYMBOL BUILDING_DIRECT_DISTRIBUTED
 add_component_library(p3distributed NOINIT SYMBOL BUILDING_DIRECT_DISTRIBUTED
   ${P3DISTRIBUTED_HEADERS})
   ${P3DISTRIBUTED_HEADERS})
+set_target_properties(p3distributed PROPERTIES LINKER_LANGUAGE CXX)
 target_link_libraries(p3distributed p3directbase p3dcparser panda)
 target_link_libraries(p3distributed p3directbase p3dcparser panda)
 target_interrogate(p3distributed ALL EXTENSIONS ${P3DISTRIBUTED_SOURCES})
 target_interrogate(p3distributed ALL EXTENSIONS ${P3DISTRIBUTED_SOURCES})