Skip to content

Commit

Permalink
CMake: Do not use CMake 3.15 generator expressions
Browse files Browse the repository at this point in the history
Fixes: 50d6d78 ("CMake: Add various MSVC-specific flags")
  • Loading branch information
pierremoreau committed Sep 13, 2021
1 parent 4432834 commit 15e2a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ add_library (CG_Labs_options INTERFACE)
target_compile_definitions(
CG_Labs_options
INTERFACE
$<$<COMPILE_LANG_AND_ID:CXX,MSVC>:NOMINMAX>
$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:NOMINMAX>
)
target_compile_options (
CG_Labs_options
INTERFACE
$<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/utf-8;/Zc:__cplusplus>
$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/utf-8;/Zc:__cplusplus>
)
target_compile_features (CG_Labs_options INTERFACE cxx_std_14)

Expand Down

0 comments on commit 15e2a2b

Please sign in to comment.