Skip to content

Commit

Permalink
build(cmake): use correct variable to branch modules targets
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP committed Oct 19, 2023
1 parent a0b1511 commit 9068836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ add_library(mp-units::mp-units ALIAS mp-units)
install(TARGETS mp-units EXPORT mp-unitsTargets)

# C++ modules
if(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API)
if(${projectPrefix}BUILD_MODULES)
add_library(mp-units-modules STATIC)
add_library(mp-units::modules ALIAS mp-units-modules)
target_sources(
Expand Down

0 comments on commit 9068836

Please sign in to comment.