Skip to content

Commit

Permalink
fix: incorrect CMake boolean logic fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed May 31, 2024
1 parent ad94c2e commit a874d64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ endif()
# add project code
add_subdirectory(src)

if(!${projectPrefix}API_FREESTANDING)
if(NOT ${projectPrefix}API_FREESTANDING)
# add usage example
add_subdirectory(example)
endif()
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

cmake_minimum_required(VERSION 3.5)

if(!${projectPrefix}API_FREESTANDING)
if(NOT ${projectPrefix}API_FREESTANDING)
add_subdirectory(runtime)
endif()
add_subdirectory(static)

0 comments on commit a874d64

Please sign in to comment.