fix logic error in CMakeLists.txt

This commit is contained in:
Greg Landrum
2016-01-22 03:35:22 -05:00
parent 4d3605e85c
commit c9606e5283

View File

@@ -35,8 +35,8 @@ option(RDK_USE_FLEXBISON "use flex/bison, if available, to build the SMILES/SMAR
option(RDK_TEST_COVERAGE "Use G(L)COV to compute test coverage" OFF)
option(RDK_USE_BOOST_SERIALIZATION "Use the boost serialization library if available" ON)
option(RDK_OPTIMIZE_NATIVE "Use native features while compiling." ON)
if(NOT MSVC)
option(RDK_OPTIMIZE_NATIVE "Use native features while compiling." ON)
if(RDK_OPTIMIZE_NATIVE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcnt")
endif()