Browse Source

Simplify exporting msvc runtime flag

Rokas Kupstys 8 years ago
parent
commit
75fc862ff7
1 changed files with 1 additions and 4 deletions
  1. 1 4
      Source/Atomic/CMakeLists.txt

+ 1 - 4
Source/Atomic/CMakeLists.txt

@@ -241,10 +241,7 @@ if ($ENV{ATOMIC_BUILD_DIST})
 endif ()
 endif ()
 
 
 if (MSVC)
 if (MSVC)
-    target_compile_options(Atomic PUBLIC "$<$<CONFIG:Debug>:${ATOMIC_MSVC_RUNTIME}d>")
-    target_compile_options(Atomic PUBLIC "$<$<CONFIG:Release>:${ATOMIC_MSVC_RUNTIME}>")
-    target_compile_options(Atomic PUBLIC "$<$<CONFIG:RelWithDebInfo>:${ATOMIC_MSVC_RUNTIME}>")
-    target_compile_options(Atomic PUBLIC "$<$<CONFIG:MinSizeRel>:${ATOMIC_MSVC_RUNTIME}>")
+    target_compile_options(Atomic PUBLIC $<$<CONFIG:Debug>:${ATOMIC_MSVC_RUNTIME}d> $<$<NOT:$<CONFIG:Debug>>:${ATOMIC_MSVC_RUNTIME}>)
 endif ()
 endif ()
 
 
 if (UNIX OR MINGW)
 if (UNIX OR MINGW)