Browse Source

workaround

Rob Parolin 6 years ago
parent
commit
a3795dd83d
1 changed files with 10 additions and 8 deletions
  1. 10 8
      CMakeLists.txt

+ 10 - 8
CMakeLists.txt

@@ -21,12 +21,14 @@ endif()
 #-------------------------------------------------------------------------------------------
 add_definitions(-D_CHAR16T)
 
-#-------------------------------------------------------------------------------------------
-# Header only library 
-#-------------------------------------------------------------------------------------------
-add_library(EABase INTERFACE) 
+if (NOT EABASE_BUILD_TESTS)
+	#-------------------------------------------------------------------------------------------
+	# Header only library 
+	#-------------------------------------------------------------------------------------------
+	add_library(EABase INTERFACE) 
 
-#-------------------------------------------------------------------------------------------
-# Include dirs
-#-------------------------------------------------------------------------------------------
-target_include_directories(EABase INTERFACE include/Common)
+	#-------------------------------------------------------------------------------------------
+	# Include dirs
+	#-------------------------------------------------------------------------------------------
+	target_include_directories(EABase INTERFACE include/Common)
+endif()