Skip to content

Commit

Permalink
Refactor CMake file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill71 committed Aug 25, 2022
1 parent 802f579 commit 3c7997e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ include_directories(include/boost_1_65_1 Headers)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_definitions(-DCUSTOMER_PREFIX_PATH)
add_definitions(-DCUSTOMER_CMAKE_PREFIX_PATH)

if (NOT DEFINED CUSTOMER_PREFIX_PATH OR CUSTOMER_PREFIX_PATH STREQUAL "")
if (NOT DEFINED CUSTOMER_CMAKE_PREFIX_PATH OR CUSTOMER_CMAKE_PREFIX_PATH STREQUAL "")
message(FATAL_ERROR "You have to specify your own Qt prefix path using CMAKE_PREFIX_PATH argument.")
else()
set(CMAKE_PREFIX_PATH ${CUSTOMER_PREFIX_PATH})
set(CMAKE_PREFIX_PATH ${CUSTOMER_CMAKE_PREFIX_PATH})
endif()

set(CMAKE_AUTOMOC ON)
Expand Down

0 comments on commit 3c7997e

Please sign in to comment.