Skip to content

Commit

Permalink
remove flags
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadRaziei committed Feb 5, 2024
1 parent 8a9fab1 commit a1c163e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v3
Expand Down
30 changes: 15 additions & 15 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ endif()
#set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g")


if(MSVC)
# Microsoft Visual Studio compiler
set(MSVC_FLAGS "/O2")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${MSVC_FLAGS}")
elseif(CMAKE_COMPILER_IS_GNUCXX)
# GCC or Clang compiler
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
# Linux
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
else()
# Other OS
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=generic")
endif()
endif()
#if(MSVC)
# # Microsoft Visual Studio compiler
# set(MSVC_FLAGS "/O2")
# set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${MSVC_FLAGS}")
#elseif(CMAKE_COMPILER_IS_GNUCXX)
# # GCC or Clang compiler
# set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
# if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
# # Linux
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
# else()
# # Other OS
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=generic")
# endif()
#endif()

set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING "" FORCE)
Expand Down

0 comments on commit a1c163e

Please sign in to comment.