We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40c89d5 commit 2925dbeCopy full SHA for 2925dbe
external/misc/CMakeLists.txt
@@ -32,9 +32,15 @@ if(LINUX)
32
)
33
endif()
34
35
- add_library(misc STATIC
36
- ${misc_SOURCES}
37
- )
+ # add_library doesn't like to get an empty source file list.
+
+ if($misc_SOURCES)
38
+ add_library(misc STATIC
39
+ ${misc_SOURCES}
40
+ )
41
+ else()
42
+ set(MISC_LIBRARIES "" CACHE INTERNAL "")
43
+ endif()
44
45
elseif(WIN32 OR CYGWIN) # windows
46
0 commit comments