From f57c4b919c6f067668eb1691942089fcb24488bc Mon Sep 17 00:00:00 2001 From: jingang Date: Thu, 6 Jun 2019 11:36:39 -0400 Subject: [PATCH] do not set compile/link flags for visual studio generator --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 70ff63e978..5c0734d23f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,6 +72,9 @@ endif() # Set compile/link flags based on which compiler is being used #=============================================================================== +# Skip for Visual Stduio which has its own configurations through GUI +if(NOT MSVC) + if(openmp) # Requires CMake 3.1+ find_package(OpenMP) @@ -104,6 +107,8 @@ endif() message(STATUS "OpenMC C++ flags: ${cxxflags}") message(STATUS "OpenMC Linker flags: ${ldflags}") +endif() + #=============================================================================== # pugixml library #===============================================================================