Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy the stl.cppmap modulemap now during configuration time.
The current builds fail because without a valid modulemap the setresuid test
failed during configuration time.
  • Loading branch information
Teemperor committed Mar 15, 2017
commit e7738cb0c8ee68f465062007a4c1aec94ab6501d
7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,7 @@ if(cxxmodules)

configure_file(${CMAKE_SOURCE_DIR}/build/unix/modulemap.overlay.yaml.in ${CMAKE_BINARY_DIR}/include/modulemap.overlay.yaml @ONLY)

add_custom_target(copystlmodulemap
DEPENDS build/unix/module.modulemap
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/build/unix/stl.cppmap ${CMAKE_BINARY_DIR}/include/stl.cppmap
)

add_dependencies(copymodulemap copystlmodulemap)
configure_file(${CMAKE_SOURCE_DIR}/build/unix/stl.cppmap ${CMAKE_BINARY_DIR}/include/stl.cppmap)
endif()

# These vars are useful when we want to compile things without cxxmodules.
Expand Down