parent
75c9b0d3bf
commit
70c5390bb2
@ -0,0 +1,16 @@
|
|||||||
|
CMake Warning \(dev\) at NotCompiledSourceModules.cmake:5 \(target_sources\):
|
||||||
|
CMake's C\+\+ module support is experimental. It is meant only for
|
||||||
|
experimentation and feedback to CMake developers.
|
||||||
|
Call Stack \(most recent call first\):
|
||||||
|
CMakeLists.txt:6 \(include\)
|
||||||
|
This warning is for project developers. Use -Wno-dev to suppress it.
|
||||||
|
|
||||||
|
(CMake Error in CMakeLists.txt:
|
||||||
|
Target "not-cxx-source" has source file
|
||||||
|
|
||||||
|
.*/Tests/RunCMake/CXXModules/sources/not-compiled.txt
|
||||||
|
|
||||||
|
in a "FILE_SET TYPE CXX_MODULES" but it is not scheduled for compilation.
|
||||||
|
|
||||||
|
)+
|
||||||
|
CMake Generate step failed. Build files cannot be regenerated correctly.
|
@ -0,0 +1,13 @@
|
|||||||
|
enable_language(CXX)
|
||||||
|
set(CMAKE_EXPERIMENTAL_CXX_SCANDEP_SOURCE "")
|
||||||
|
|
||||||
|
add_library(not-cxx-source)
|
||||||
|
target_sources(not-cxx-source
|
||||||
|
PRIVATE
|
||||||
|
sources/cxx-anchor.cxx
|
||||||
|
PUBLIC
|
||||||
|
FILE_SET fs TYPE CXX_MODULES FILES
|
||||||
|
sources/not-compiled.txt)
|
||||||
|
target_compile_features(not-cxx-source
|
||||||
|
PRIVATE
|
||||||
|
cxx_std_20)
|
Loading…
Reference in new issue