Browse Source

[cmake] Update modules.cmake to fix cmake error (#2393)

* Update modules.cmake

* tst1
v-nam 2 weeks ago
parent
commit
c59ef98b3b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      cmake/modules.cmake

+ 4 - 1
cmake/modules.cmake

@@ -10,7 +10,10 @@ if(HTTPLIB_BUILD_MODULES)
 	
 	
 	target_sources(${PROJECT_NAME}
 	target_sources(${PROJECT_NAME}
 		PUBLIC
 		PUBLIC
-			FILE_SET CXX_MODULES FILES
+			FILE_SET CXX_MODULES 
+			BASE_DIRS 
+				"${_httplib_build_includedir}"
+			FILES
 				"${_httplib_build_includedir}/httplib.cppm"
 				"${_httplib_build_includedir}/httplib.cppm"
 	)
 	)
 endif()
 endif()