diff --git a/external/misc/CMakeLists.txt b/external/misc/CMakeLists.txt index 16125d0a..05efcc5e 100644 --- a/external/misc/CMakeLists.txt +++ b/external/misc/CMakeLists.txt @@ -32,9 +32,14 @@ if(LINUX) ) endif() - add_library(misc STATIC - ${misc_SOURCES} - ) + if ( "${misc_SOURCES}" ) + add_library(misc STATIC + ${misc_SOURCES} + ) + else() + # Nothing to build + set(MISC_LIBRARIES "" CACHE INTERNAL "") + endif() elseif(WIN32 OR CYGWIN) # windows