Skip to content

Commit

Permalink
update cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
ozguronsoy committed Dec 11, 2024
1 parent 9b5498f commit e6a5e0f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ option(ENABLE_STATIC "ENABLE_STATIC" Off)
option(ENABLE_SHARED "ENABLE_SHARED" Off)
option(ENABLE_TESTS "ENABLE_TESTS" Off)

if (ENABLE_STATIC OR ENABLE_SHARED)
project("HephAudio" VERSION ${HEPHAUDIO_VERSION} LANGUAGES CXX)
endif()

if (NOT DEFINED HEPHAUDIO_BUILD_DIR)
set(HEPHAUDIO_BUILD_DIR ${CMAKE_CURRENT_SOURCE_DIR})
endif ()
Expand All @@ -26,7 +22,7 @@ if (CMAKE_CXX_STANDARD LESS 17)
endif ()

if (NOT DEFINED CMAKE_SIZEOF_VOID_P)
message( FATAL_ERROR "CMAKE_SIZEOF_VOID_P is not set, call project() before running this cmake.")
project("HephAudio" VERSION ${HEPHAUDIO_VERSION} LANGUAGES CXX)
endif()

if (CMAKE_SIZEOF_VOID_P EQUAL 4)
Expand Down

0 comments on commit e6a5e0f

Please sign in to comment.